Re: [PHP-DB] problem - query inside a function

2003-10-16 Thread Luis M Morales C
My Comment bellow: On Wednesday 15 October 2003 14:38, Kirk Babb wrote: Hi, I'm having trouble with a query inside a function. I thought I'd written this so that the function would fail if email and zipcode supplied were not in the same row (trying to use those two things to identify the

Re: [PHP-DB] problem - query inside a function

2003-10-16 Thread CPT John W. Holmes
From: Luis M Morales C [EMAIL PROTECTED] My Comment bellow: On Wednesday 15 October 2003 14:38, Kirk Babb wrote: Hi, I'm having trouble with a query inside a function. I thought I'd written this so that the function would fail if email and zipcode supplied were not in the same row

RE: [PHP-DB] problem - query inside a function

2003-10-16 Thread Hutchins, Richard
PROTECTED] Sent: Thursday, October 16, 2003 10:57 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] problem - query inside a function From: Luis M Morales C [EMAIL PROTECTED] My Comment bellow: On Wednesday 15 October 2003 14:38, Kirk Babb wrote: Hi, I'm having

RE: [PHP-DB] problem - query inside a function

2003-10-15 Thread Hutchins, Richard
Kirk, First, I'd recommend troubleshooting this function by doing the following: [code snippet] function getEditData($email,$zipcode) { $sql = SELECT * FROM contact_info WHERE zipcode='$zipcode' AND email=\{$email}\; echo $sql; //ADD THIS LINE //$query = mysql_query($sql);