[PHP] Quoting an unknown string for database insert

2001-05-01 Thread Joseph Tate

Is there a function that I can call that is similar to perl's DBI::quote
function that will take arbitrary text and quote it so that it is safe to
insert into a database?

I'm using PHP 4.0.4pl1 on Apache 1.3.14 with postgresql 7.0.2

Joseph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Quoting an unknown string for database insert

2001-05-01 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Joseph Tate) wrote:

 Is there a function that I can call that is similar to perl's DBI::quote
 function that will take arbitrary text and quote it so that it is safe to
 insert into a database?

http://php.net/addslashes

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]