What error does the database return? (Can you connect to the database?) And even if you know the query works, it might be a good things to post the update statement to, since just because it works in one place does not mean it must work in another place (the string might be parsed or translated.)
-----Original Message----- From: Brian Feliciano To: [EMAIL PROTECTED] Sent: 2001-10-20 04:44 Subject: [PHP-WIN] mysql php help this is maybe a beginners question, that's because im a newbie to PHP-MySQL i want to run UPDATE sql command and this is the sample code. if (!mysql_query ($sql)) echo("Invalid query<br><br>".$sql); and i know that my $sql is correct because i tried to paste it to my PHPmyadmin and it works. how come i can't update? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]