putting HTML in mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

putting HTML in mysql

Post by GeXus »

Is there a way to put HTML into mysql, without it placing shashes before quotes.. i just want it to go in exactly as it is..

Thanks!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Code: Select all

mysql_real_escape_string($HTML);
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

mysql_escape_strings also prepends the backslashes to the special character while inserting the records in mysql. isn't that so ?

Dibyendra
agtlewis wrote:

Code: Select all

mysql_real_escape_string($HTML);
Post Reply