corkg Posted September 18, 2007 Share Posted September 18, 2007 Help Can someone code a simple script that will display multiple data At the moment i have to display all data. $test = mysql_query("SELECT * FROM users WHERE activated = '1' ORDER BY l_ip DESC"); $col == "1"; while($man = mysql_fetch_object($test)) { $lol = mysql_query("SELECT * FROM users WHERE l_ip = '$man->l_ip'"); $rows = mysql_num_rows($lol); if ($col=="0"){ $td="#303030"; $col="1"; }else{ $td="#0f0f0f"; $col="0"; } echo "<tr bgcolor=$td><td class=border><b>$man->username</a></td> <td class=border>$man->r_ip</td> </tr>"; } Quote Link to comment https://forums.phpfreaks.com/topic/69795-multiple/ Share on other sites More sharing options...
GingerRobot Posted September 18, 2007 Share Posted September 18, 2007 Well i for one have absolutely no idea what you are trying to achieve. Perhaps you could tell us exactly what you want to do? Quote Link to comment https://forums.phpfreaks.com/topic/69795-multiple/#findComment-350643 Share on other sites More sharing options...
corkg Posted September 19, 2007 Author Share Posted September 19, 2007 The code i provided is to display recorded IP's but i want it only to display dupers (People with multiple accounts) Quote Link to comment https://forums.phpfreaks.com/topic/69795-multiple/#findComment-351306 Share on other sites More sharing options...
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.