Afficher un message
Vieux 14/09/2007, 15h23   #3
Anonymous
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: associate user account with filename

Reggie wrote:
>
> am trying to associate username with filename in a upload script.
>
> I get this error:
> Parse error: syntax error, unexpected T_STRING in /home/fhlinux169/c/
> clashoff.co.uk/user/htdocs/upload.php on line 42


Why don't you just look at line 42 then?

> $myfilename=basename( $_FILES['uploaded']['name'])
>
> mysql_connect("$host", "$username", "$password")or die("cannot
> connect");


Pretty obvious, you missed a semicolon in the line above 42.

Bye!
  Réponse avec citation
 
Page generated in 0,04838 seconds with 9 queries