Hi everyone
I would like to add a filter that will check a name in the database, If name does not exist then it should add [Not Registered] to the name
I tried to write the code in blue but I get an error, can someone help
PHP Code:mysql_numrows($result);
if($num > 0){
$name_exist = "<font size=5>$BloomName is a Registered Cultivar. Please Rename your Cultivar.</font>";
echo $name_exist;
exit;
} else {
$name_ok = "<font size=5>$BloomName is not a Registered Cultivar. You may register as $BloomName.</font>";
[COLOR="Blue"] $pod_reg = "$PodName";
exit;
} else
$pod_reg = "$PodName+[Not Registered]";
}[/COLOR]



Reply With Quote

Bookmarks