Hi everyone
This is my first post here and it would be great if someone could help me with this small problem. I have a PHP script which inserts form data into a MySQL database. But clicking on the Submit button produces the following error:-
Database ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'http://www.tarbiyyat.org/php_newsletter/images/header_logo.png' width='700' heig' at line 1
In the script in question, there is only one line where this png file is mentioned, and it is in a section of 16 lines where I am creating variables that will appear as default values in certain fields in the Form. And this is the line in question:-
$headerLogo = "<img src='http://www.tarbiyyat.org/php_newsletter/images/header_logo.png' width='700' height='140'>";
For some reason, the error message doesn't have the full text (ending height with just heig)?
Is it really a syntax error?
Any help or advice or wrist-slapping would be greatly appreciated.
Thanks
Terry