Posted by Johannes Mueller on 12/18/30 11:50
Davide schrieb:
> Hi all,
> I don't understand why this script want work
>
> if($_POST['students'] == true)
> copy("$file" , "/students/$file_name")
> else echo "no check";
>
> Parse error: parse error, unexpected T_ELSE
>
> really thanx :)
I would change two things - at first i would use braces. And the second
thing (it's the error) - use the semikolon at the end of a line!
if([..]){
[do s.th.];
} else {
[do s.th.];
}
good luck
Johannes
--
Emails ohne "[nospam]" im Betreff werden kommentarlos gelöscht.
[Back to original message]
|