For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > December 2004 > About the unexpected T_VARIABLE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author About the unexpected T_VARIABLE
Michael @ Skys . Com . Cn

2004-12-29, 8:56 am

Hi;
=20
I'm new in php. I has try some sample code in the book
<? php
$hamburger =3D 4.95;

$milkshake =3D 1.95;

$cola =3D .85;

$food =3D 2 * $hamburger + $milkshake + $cola;

$tax =3D $food * .075;

$tip =3D $food * .16;

$total =3D $food + $tax + $tip;

print "Total cost of the meal is \$$total";

?>

But I always get "Parse error: syntax error, unexpected T_VARIABLE in e:\=
Inetpub\wwwroot\meal.php on line 2"

So any suggestion

Regards

Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com