PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$row2 = $row['asset']; //set $row2 value of $row asset
if ($row2 == ""){
}
else{
$querytwo = mysql_query("SELECT * FROM ip where asset = $row2"); // Query database with $row2 value
$ip = mysql_fetch_array($querytwo); // get result from database and assign as $ip
}
This is not working. Does anybody know how to check for a null value?
$row2 = $row['asset']; //set $row2 value of $row asset
if ($row2 == ""){
$ip['ip'] = "";
}
else{
$querytwo = mysql_query("SELECT * FROM ip where asset = $row2"); // Query database with $row2 value
$ip = mysql_fetch_array($querytwo); // get result from database and assign as $ip
}