Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Question Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';'

    Code:
    <img src="http://chart.apis.google.com/chart?cht=p3&chd=t:<?php echo "," $country['country_count'] ?>&chs=280x100&chl=<?php echo "|" $country['country'] ?>" />

  • #2
    Regular Coder Iszak's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Western Australia
    Posts
    332
    Thanks
    2
    Thanked 58 Times in 57 Posts
    PHP Code:
    <?php echo "," $country['country_count'?>
    <?php 
    echo "|" $country['country'?>
    to
    PHP Code:
    <?php echo ",".$country['country_count'?>
    <?php 
    echo "|".$country['country'?>

  • #3
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,313
    Thanks
    4
    Thanked 206 Times in 203 Posts
    PHP Code:
    <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.
    Dave .... HostMonster for all of your hosting needs

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by jarv View Post
    Code:
    <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

  • Users who have thanked oesxyl for this post:

    jarv (08-07-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •