Posted by Jerry Stuckle on 08/09/07 12:29
upendrajpr@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());
>
> $check_2 = mysql_num_rows($check);
$check_1
>
> but the warning comes
> " Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> result resource in C:\Program Files\Apache Software Foundation
> \Apache2.2\htdocs\rajput_new\loginphp.php on line 44.."
>
> $_POST['username'] has name of form on same code the user enter
> username..
>
> What's the problem...
>
>
> Thanks in advance...
> situ
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|