php-windows | 2001051
Date: 05/13/01
- Next message: Paul Meagher: "Re: [PHP-WIN] RE: New function help"
- Previous message: Bogdan Stanescu: "[PHP-WIN] mysql_query seems not to work..."
- In reply to: Bogdan Stanescu: "[PHP-WIN] mysql_query seems not to work..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
> $query="SELECT * FROM session where(user='$user_');";
> $rez=mysql_query($query,$db);
try it like this.
$query = "SELECT * FROM session WHERE user='$user'"; // without the first
colon
$rez = mysql_query($query, $db) or die(mysql_error());
hope it helps
Johannes
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paul Meagher: "Re: [PHP-WIN] RE: New function help"
- Previous message: Bogdan Stanescu: "[PHP-WIN] mysql_query seems not to work..."
- In reply to: Bogdan Stanescu: "[PHP-WIN] mysql_query seems not to work..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

