Hello all,
I have a very very simple search feature, when someone types in a product number, they go to the product page of that product number.
This is done, now, i'm having problems with if the result is NULL, then display an error message.
<?php
$productid=$HTTP_GET_VARS['productid'];
$strSQL = "SELECT * FROM products WHERE productid = $productid";
$q = new Query();
if (!$q->doquery($db, $strSQL))
{
echo "Internal error (Error Code 001). <br> Please try again later.";
exit();
}
$row = $q->getrow();
$q->free();
$IsDesc = "true";
if ($row["productName"])==NULL
echo "no result, please try again.";
?>
My echo isn't working, would anyone know how to get it to work? or at least make it an include.
if $row["productName"])==NULL
{include file1.php}
else
{include file2.php}
I would apreciate any help.
Thanks