View Single Post
Old 04-04-2009, 08:01 AM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
if this is for a php script then you can just use http://us3.php.net/mysql_real_escape_string

Code:
$sql = "update category_text set text='".mysql_real_escape_string("this is a problem because it's got an apostrophe in it")."', keywords='asdf,asdf' where id='1';"

$affected_rows = mysql_query($sql);

Last edited by nation-x; 04-04-2009 at 08:03 AM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote