...

View Full Version : Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';'



jarv
08-07-2008, 09:23 AM
<img src="http://chart.apis.google.com/chart?cht=p3&chd=t:<?php echo "," $country['country_count'] ?>&chs=280x100&chl=<?php echo "|" $country['country'] ?>" />

Iszak
08-07-2008, 09:31 AM
<?php echo "," $country['country_count'] ?>
<?php echo "|" $country['country'] ?>

to


<?php echo ",".$country['country_count'] ?>
<?php echo "|".$country['country'] ?>

djm0219
08-07-2008, 09:31 AM
<img src="http://chart.apis.google.com/chart?cht=p3&chd=t:<?php echo "," . $country['country_count']; ?>&chs=280x100&chl=<?php echo "|" . $country['country']; ?>" />

You were missing closing semi-colons as well as the concatenation character between the first part of your echo and the variable.

oesxyl
08-07-2008, 09:42 AM
<img src="http://chart.apis.google.com/chart?cht=p3&chd=t:<?php echo "," $country['country_count'] ?>&chs=280x100&chl=<?php echo "|" $country['country'] ?>" />
I don't want to be rude but I sugest you to start from here:

http://www.php.net/manual/en/langref.php

at least basic things you must know if you want to use php.

best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum