PDA

View Full Version : How can his be wrong



Pi-Sudoku
03-20-06, 01:48 PM
i wrote the following PHP code



<?php
$var1 = 1;

echo $var1

?>



and was told


Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /usr/home/gowers/public_html/gentest2.php on line 9

have i made some ridiculous fundamental mistake?

Kunax
03-20-06, 02:24 PM
you have made a very common mistake; that you by now proberly already have seen yourself. At any rate its a rather basic error you should find it by yourself, or post aging if you fail.

Pi-Sudoku
03-21-06, 10:24 AM
crap i forgot the ;
Thanx