Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

[PHP] if then else statement not working From: Anasta (neretlis <email protected>)
Date: 05/05/05

What am i doing wrong here, the output is always 'empty'

<?php
 $result = mysql_query("SELECT username FROM users
WHERE seatnum='seat1'") or die(mysql_error());

  if (seatnum == seat1) {
echo username;
} else {
echo 'empty';
}
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php