note 4676 deleted from Control Structures by ronabop

From: Date: Sat, 12 Aug 2000 20:55:34 +0000
Subject: note 4676 deleted from Control Structures by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1540@lists.php.net to get a copy of this message
is it possible to have more than one expression after and "IF" for ex: &lt;? if ($ip_add) <--and 2nd exp is $c_name--> { mysql_select_db (test); $result1 = mysql_query ("SELECT * FROM information WHERE ip_add = '$ip_add'"); if ($row = mysql_fetch_array($result1)) { print ("<font color=red><h3>Error: The IP_Address</h4> "); print ("<font color=red><h3>$ip_add</h3>"); print ("<font color=red><h3> has been taken. Go back and enter a new IP_Address.</h3>"); print (""); } else and so on................. how do i tell "IF" to check for two expressions instead of just one which in this case is "$ip_add" i want it to check for $ip_add and $c_name

« previous php.notes (#1540) next »