[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] [OT] .php logic problem
- Subject: [ale] [OT] .php logic problem
- From: attriel at d20boards.net (attriel)
- Date: Thu, 7 Aug 2003 14:19:53 -0400 (EDT)
> 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