php-general | 2005051
Date: 05/05/05
- Next message: Jason Barnett: "Re: [PHP] Tracking what has been changed"
- Previous message: Jason Barnett: "Re: [PHP] joining in php development"
- In reply to: Anasta: "[PHP] if then else statement not working"
- Next in thread: Matthew Weier O'Phinney: "[PHP] Re: if then else statement not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/5/05, Anasta <neretlis <email protected>> wrote:
> 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) {
you must use
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
>
>
-- bala> balachandar muruganantham blog> lynx http://chandar.blogspot.com web> http://www.chennaishopping.com-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Jason Barnett: "Re: [PHP] Tracking what has been changed"
- Previous message: Jason Barnett: "Re: [PHP] joining in php development"
- In reply to: Anasta: "[PHP] if then else statement not working"
- Next in thread: Matthew Weier O'Phinney: "[PHP] Re: if then else statement not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

