krappleby025
Programmer
Hi all, im relatively new to php, only two days, lol
i have a small problem, that some of you will know
i have pulled a record from a database using
$result = mysql_query($query)
now, in some cases there wont be a result. as the record does not exist, and i am trying to make the script do one or the other thing, i have tried allsorts including
if (@$result != ""
if ($result != ""
i even tried retrieving the row, and using row variables, but to no avail. what am i doing wrong..
Thanks
i have a small problem, that some of you will know
i have pulled a record from a database using
$result = mysql_query($query)
now, in some cases there wont be a result. as the record does not exist, and i am trying to make the script do one or the other thing, i have tried allsorts including
if (@$result != ""

if ($result != ""

i even tried retrieving the row, and using row variables, but to no avail. what am i doing wrong..
Thanks