Re: [PHP] mysql test and error

2008-02-25 Thread Daniel Brown
On Sun, Feb 24, 2008 at 5:00 PM, hE <[EMAIL PROTECTED]> wrote: > The following program gave the error: > > "Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10" Look at this part of the code: $result = mysql_query($sql); if ($result == 0) echo 'Error ' . mysql_errno() . ':

Re: [PHP] mysql test and error

2008-02-24 Thread Brady Mitchell
On Feb 24, 2008, at 200PM, hE wrote: The following program gave the error: "Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10" Did you copy/paste the code? If so maybe the quotation marks are the fancy "smart quotes" like MS Office likes to use. Try replacing your q

Re: [PHP] mysql test and error

2008-02-24 Thread hE
The following program gave the error: "Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10" Test MySQL Error ' . mysql_errno() . ': '. mysql_error() . ''; else { ?> Variable_nameValue '; $row_array = mysql_fetch_row($result); for ($j = 0; $j < mysql_num_fields($result);

Re: [PHP] mysql test and error

2008-02-24 Thread Brady Mitchell
On Feb 24, 2008, at 1135AM, hE wrote: hi, I found an e-book in the net about php and mysql and with its sample program I am trying to test whether I have mysql working correctly or not. the following program gives error message. why? What exactly does the error message say? We can help tr

[PHP] mysql test and error

2008-02-24 Thread hE
hi, I found an e-book in the net about php and mysql and with its sample program I am trying to test whether I have mysql working correctly or not. the following program gives error message. why? Test MySQL Error “ . mysql_errno() . “: “ . mysql_error() . “”; else { ?> Variable_nameValue