Welcome Guest, Not a member yet? Register   Sign In
HTML in database
#1

[eluser]zeedy2k[/eluser]
Whats the best way to store HTML in the database? Will parts of HTML code break SQL queries and if so how would you suggest its done? Its for a simple CMS for my site...

Cheers
Robert
#2

[eluser]sandwormusmc[/eluser]
I haven't used these particular database functions much myself, but check out the docs on $this->db->escape() and the section on query bindings. Apparently those will escape your SQL statements automagically ...
#3

[eluser]Référencement Google[/eluser]
Use Active records and you won't encounter any problems as all your data will be automatically escaped.




Theme © iAndrew 2016 - Forum software by © MyBB