Posted by nfantis on 08/09/07 20:01
On Aug 9, 7:31 am, upendra...@gmail.com wrote:
> Dear friends,
>
> I am running the code
> $check_1 = mysql_query("SELECT * FROM user WHERE u_name = '".
> $_POST['username']."'") or die(mysql_error());
>
Its probably your SQL statement. You aren't ending it with a
semicolon.
Use this: $check_1 = mysql_query("SELECT * FROM user WHERE u_name =
'" .
$_POST['username']"';") or die
mysql_error();
Notice the semicolon right after the single colon before the
parenthesis.
Navigation:
[Reply to this message]
|