Re: [PHP] Oh, the problem

2002-07-21 Thread Chris Earle
> -Original Message- > From: Chris Earle [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 12:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Oh, the problem > > It appears that $username isn't being defined within the scope of the > query. > You

RE: [PHP] Oh, the problem

2002-07-21 Thread César Aracena
Chris. Thanks for living me a hand in such a fast way. It helped me fine. César. > -Original Message- > From: Chris Earle [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 12:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Oh, the problem > > It appears that

[PHP] Oh, the problem

2002-07-21 Thread Chris Earle
It appears that $username isn't being defined within the scope of the query. You define it only in the function. Try do this instead: $username = ""; function pic_upload($userid) { global $username; //... the rest of the code } // now do the queries and everything else. I think that will fix y