why do i get this error when inserting data to a mysql table
when trying to insert to a table info for a picture with a html link to another site on it i get an error message:
counter INSERT error: 1064, You have an error in your SQL syntax near 'href='http://www.mysite.com' target='_blank'><img src='/uploa' at line 1 the mysql code is below Code:
$damn = "<a href='http://www.mysite.com' target='_blnk'><img src='/uploads/mho.jpg' alt='We're here' /></a>"; Thanks in advance |
Well, you've only quoted certain sections of this. You'll want to quote the whole thing. Perhaps '$damn' is what you are looking for.
|
The part
alt='We're here' will definitely not work. You should try alt='We\'re here' |
All times are GMT -5. The time now is 08:05 AM. |