Jump to content

Recommended Posts

Posted

Hi,

 

I am trying to add HTML into a mySQL database... The script is saying its gone it but its not in the database, however sometimes it works and sometimes it doesnt work.

 

Anyone have any idea how I can fix this maybe I need some code to tell the mysql its html?

 

Dan

Posted

Can you output your table structure and highlight the fieldname you're storing the HTML in...

 

It may simply be the incorrect choice of field type... You'll also be wanting to escape any input to avoid the SQL suffering a syntax error...

Posted

What sort of HTML as well would be useful .. i.e. a web address or something more complicated to run, say, a CMS?

 

From memory (and it has been a while) wrapping the field in " " tends to allow it in there better, but as contink said...

 

Can you output your table structure and highlight the fieldname you're storing the HTML in...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...