No records returned problem
Posted: Fri Aug 22, 2003 2:13 pm
I am creating a logon page and I have some code that checks to see if any records are returned.
Now I use 'isset' to check but of course it gets set, so my quesion is, how do you check to see that a result set is returned without printing to screen. exampl:
$query = "select * from me_t where name=' ".$name." ' ";
if(isset($query)){
echo "query gets set";
}
Now I know I am using the wrong function but which one tells me that a record is returned?? I would send my whole code, however I am at work and do not have access to it at the moment
Now I use 'isset' to check but of course it gets set, so my quesion is, how do you check to see that a result set is returned without printing to screen. exampl:
$query = "select * from me_t where name=' ".$name." ' ";
if(isset($query)){
echo "query gets set";
}
Now I know I am using the wrong function but which one tells me that a record is returned?? I would send my whole code, however I am at work and do not have access to it at the moment