[ale] [OT] .php logic problem
attriel
attriel at d20boards.net
Thu Aug 7 14:19:53 EDT 2003
> I have spent a lot of time on a weird php problem.
> I am trying to make sure that the ' character is always escaped in my
> database.
Assuming you're trying to get "this don't work" to go into the database
happily:
$foo = "This don't work";
$foo2 = pg_escape_string($foo);
(for postgres; mysql_escape_string for mysql, etc presumably)
--attriel
(if you want it to have the \ in it IN the database, maybe escaping the
escaped, since the first escape'd strip to go into the DB and the second'd
still be on it?)
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list