isset problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

isset problem

Post by kevrelland »

Hi,
I want for some text to show if Special Offers is returned from a db query.
I'm not sure if i'm going down the right road, i am using

Code: Select all

<?
$x=.$row_rsCWGetCategories["category_Name"] ==."1"; /
if(isset($x)){     
echo "The variable exists";} 
else{ echo " Variable does not exists ";}
?>
at the moment it only returns the first echo to return.
Is this right or am I off track totally
Cheers
Kev
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

Re: isset problem

Post by kevrelland »

Dooooooooh,
as soon as i went back after posting this, i sorted it
Kev
Post Reply