> echo "Invalid Query. MySQL error: ".mysql_error();
> }
>
> Please note - this code is off the top of my head, I have not actually tried
> it :)
>
> -Dash
>
> -Original Message-
> From: Zeus [mailto:zeus_dreamer@;myrealbox.com]
> Sent:
Elroy [mailto:dash.php@;westonefcu.org]
Sent: 08 November 2002 16:53
To: 'Zeus'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] mysql_fetch_array problem
Zeus,
2 notes:
1. Data you insert into a database should be addslashes($varname) first (or
another encoding) to protect against MySQL injection vulnerab
eif ($count == 0) {
echo "No results returned";
}
else {
echo "Invalid Query. MySQL error: ".mysql_error();
}
Please note - this code is off the top of my head, I have not actually tried
it :)
-Dash
-Original Message-
From: Zeus [mailto:zeus_
I try to display mysql database using fetch_array but there seem to problem,
i m new with PHP and mysql.
I didn't quite sure, what's worng with my codes.i havent include the form
yet.
the error messages:
Warning: mysql_fetch_field(): supplied argument is not a valid MySQL result
resource in c:\ap