RE: [PHP-WIN] mysql_fetch_array problem

2002-11-09 Thread Dash McElroy
> 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:

RE: [PHP-WIN] mysql_fetch_array problem

2002-11-08 Thread Rich Gray
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

RE: [PHP-WIN] mysql_fetch_array problem

2002-11-08 Thread Dash McElroy
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_

[PHP-WIN] mysql_fetch_array problem

2002-11-08 Thread 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