Jump to content

[SOLVED] $row making 2 of everything ?


jamesxg1

Recommended Posts

if($_SESSION['groupid'] ==  'A') {
$count = 0;
$query = mysql_query("SELECT * FROM menu ORDER BY position ASC") or die(mysql_error()); 
while ($menu = mysql_fetch_object($query)) 
{ 
if ($count!=0){echo " ";}
echo "<tr><td style=\"padding-left:40\"><font style=\"font-size:7\">&gt</font><a href=\"$menu->link\" alt=\"$menu->name\" class=\"menu\">".$menu->name."</a></td></tr><tr><td><img src=\"images/midl.jpg\" border=\"0\" width=\"197\" height=\"8\" alt=\"\"></td></tr> <tr><td style=\"padding-left:40\"><font style=\"font-size:7\">&gt</font><a href=\"Logout.php\" alt=\"Logout\" class=\"menu\">Logout</a></td></tr><tr><td><img src=\"images/midl.jpg\" border=\"0\" width=\"197\" height=\"8\" alt=\"\"></td></tr>"; 
$count++; 
}
}

 

its creating double of everything :S ?

Link to comment
https://forums.phpfreaks.com/topic/151156-solved-row-making-2-of-everything/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.