RE: [PHP-WIN] inserting quotes into a database...

2001-05-03 Thread Kelvin Luck
e so I don't have to add any string processing at all... Thanks for all the help, Kelvin. -Original Message- From: Dena Marchant [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 16:32 To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] inserting quotes into a database... Kelvin, try replacing all

Re: [PHP-WIN] inserting quotes into a database...

2001-05-03 Thread Andrian Pervazov
Turn on the magic_quotes_sybase setting in your php.ini file. Or, if you prefer to do it manually, replace all single quotes in the fields with two consecutive single quotes. Andrian Kelvin Luck wrote: > > Hi, > I am having trouble inserting single quotes into an mssql database... my > queries

[PHP-WIN] inserting quotes into a database...

2001-05-03 Thread Kelvin Luck
Hi, I am having trouble inserting single quotes into an mssql database... my queries are taking the form: mssql_query("update discussiontopics set comment = '$comment', title = '$title', zoneid = $zoneID where topicid = $topicID"); If $comment or $title contain any single quote characters I get