New Zenner
- Join Date:
- Nov 2005
- Posts:
- 40
- Plugin Contributions:
- 0
What's wrong with this query ?
Can anyone tell me what's wrong with this query ? I want to make a popup page that just gives a bit more info. Got the popup workin ok but cant get this to work.....My coding is poor
and all I want to pull up is product description. It seems to get parsed alright,
but will not echo $prod_desc....or is the problem in my variables?
Can anyone help????
Cheers
Emmdee
$sql = "select distinct products_id, products_name, products_description, language_id
from ". PRODUCTS_DESCRIPTION ."
where products_id='" . (int)$_GET['products_id'] . "'
and language_id = '" . (int)$_SESSION['languages_id'] . "' " .
$prod = $db->Execute($sql);
echo 'Prod ID - '.(int)$_GET['products_id'] . '';
$prod_desc = $prod_lookup->fields['products_description'];
echo $prod_desc;