ilto:[EMAIL 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:
>
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 th
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
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(