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
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 $username isn't being
--
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 define it only in the function.
Try do this instead:
$username = ;
3 matches
Mail list logo