RE: [PHP] Formatting a string for entry into MySQL

2003-09-23 Thread James Johnson
SET ad_contact = '%s' WHERE subid = 43", $esAdContact); $r = mysql_query($q, $CCB) or print(mysql_error()); Thanks, James -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:45 AM To: James Johnson; [EMAIL PROTECTED] Subject:

Re: [PHP] Formatting a string for entry into MySQL

2003-09-23 Thread Burhan Khalid
James Johnson wrote: Hi, I'm trying to generate a string that contains a , to insert into a MySQL table. It appears the is being stripped out either just before or during the update. http://www.php.net/mysql-escape-string -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PH

[PHP] Formatting a string for entry into MySQL

2003-09-22 Thread James Johnson
Hi, I'm trying to generate a string that contains a , to insert into a MySQL table. It appears the is being stripped out either just before or during the update. ** code ** // has both info, update both $ad_contact = $tr_email; $ad_contact .= ""; $pSep = "-"; $ad_contact .= $tr_p1AC; $ad_conta