Insert html tags into sql database
Posted: Fri Feb 27, 2009 1:20 pm
Hello!
I'm having a problem and I don't know if it has a solution...
I want to insert some html code into a sql database with php...
Something like this:
The thing is that nothing happens... I have other querys along with this one, but they don't have the tags or ' and everything goes well... Does this has a solution? Is there other way to place ' in the database?
Thank you,
Alexandre
I'm having a problem and I don't know if it has a solution...
I want to insert some html code into a sql database with php...
Something like this:
Code: Select all
mysql_query("INSERT INTO site_imagens (id_apoio, seccao, sumario) VALUES ('$ida', 2, '<font size='5'><img
title='Florestas' alt='Florestas' src='florestas.jpg'/>Florestas</font>')");Thank you,
Alexandre