RE: [PHP] Php with mysql

From: Date: Mon, 23 May 2005 12:51:35 +0000
Subject: RE: [PHP] Php with mysql
Groups: php.general 
Request: Send a blank email to php-general+get-215735@lists.php.net to get a copy of this message
[snip] $sql = "SELECT User_name AND User_pass FROM user WHERE User_name = '$_POST['user_id']' AND '$_POST['user_id']' "; [/snip] echo $sql; //to see the query and check the syntax $sql = "SELECT User_name AND User_pass FROM user WHERE User_name = '" . $_POST['user_id'] . "' AND '" . $_POST['user_id'] . "' "; Your variables may not be parsed due to the single quotes.

« previous php.general (#215735) next »