scorpiic venom Posted July 16, 2011 Posted July 16, 2011 i have this the wcho from the $rank part am bit confused what quotes to change so it fits in with the rest please help me fix it i tried alot but no result echo" <!-- Begin Main Content --> $ranks = mysql_query("SELECT username, display_pic, user_level, level FROM users WHERE user_level = 1 ORDER BY level DESC LIMIT 10"); $i = 1; while ($rank = mysql_fetch_array($ranks)) { echo $rank['display_pic']?' <img src=' . $rank['display_pic'] . ' alt="Username:' . $rank['username'] . ' " title="Username:' . $rank['username'] . ' " width="40px" height="43px" onMouseOver="HandleMoveOn(\' '. $rank['username'] .' \')" onMouseOut="HandleMoveOff()"> ':' <img src="images/default.png" alt="Username:' . $rank['username'] . ' " title="Username:' . $rank['username'] . ' " width="40px" height="43px" onMouseOver="HandleMoveOn(\' '. $rank['username'] .' \')" onMouseOut="HandleMoveOff()">'; $i++; } <div id='stats'> <div id='statstxt'> We currently have $online Mafia online out of $membs Mafias today $today joined! </div> <div id='regbtn'> <a href='register.php'><img src='images/register_but.png'></a> </div> "; Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/....../public_html/....../authenticate.php Quote
Uridium Posted July 16, 2011 Posted July 16, 2011 (edited) try $ranks = $db->query("SELECT username, display_pic, user_level, level FROM users WHERE user_level = 1 ORDER BY level DESC LIMIT 10"); $i = 1; while ($rank = mysql_fetch_array($ranks)) { echo ' <img src="' . $rank['display_pic'] . '" alt="Username:' . $rank['username'] . ' " title="Username:' . $rank['username'] . ' " width="40px" height="43px" onMouseOver="HandleMoveOn(\' '. $rank['username'] .' \')" onMouseOut="HandleMoveOff()"> <img src="images/default.png" alt="Username:' . $rank['username'] . ' " title="Username:' . $rank['username'] . ' " width="40px" height="43px" onMouseOver="HandleMoveOn(\' '. $rank['username'] .' \')" onMouseOut="HandleMoveOff()">'; $i++; } echo" <div id='stats'> <div id='statstxt'> We currently have $online Mafia online out of $membs Mafias today $today joined! </div> <div id='regbtn'> <a href='register.php'><img src='images/register_but.png'></a> </div>"; } Edited July 16, 2011 by illusions Quote
runthis Posted July 16, 2011 Posted July 16, 2011 (edited) Hey Admin Cw in a new name, try this Removed so to not confuse with working post Edited July 16, 2011 by illusions Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.