If (!$results) are true what am I missing

From: Date: Tue, 10 Jul 2001 05:07:53 +0000
Subject: If (!$results) are true what am I missing
Groups: php.general 
Request: Send a blank email to php-general+get-57072@lists.php.net to get a copy of this message
What am I missing hear all I what to do is see if the domaname is in the database and if it does print the error message if does not then just move on without doing anything $db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword) OR DIE("Unable to connect to database"); mysql_select_db($dbName, $db); $result = mysql_query( "SELECT * FROM customers WHERE domaname = $domain1", $db); If (!$result) { print_error("<b> This Domain Name $domain1 already exist please select a new Domain Name </b> "); } Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#57072) next »