So here's the code I wrote today and when I run this, it is able to pull the machine1 info and it spits it out nicely. I guess my question is - based off the queries, can I merge them into one maybe and then run a for loop that would increment machine and output the information there? My theory is that if I can merge all the data I query, I can then run a for loop , where $machine = 1 ; $machine <=10; $machine++; and that would run the loop 10 times and get the latest data for each machine so that its up to date. So the output would look like. Machine 1 HDD Total: 446345556 HDD Available: 4323455634 0 avg: 4353 5 avg: 5450 15 avg: 3425 Memory Available: 345324 Memory Total: 454235 Idle Time: .093 Machine 2 HDD Total: 43534243 etc etc etc Also I would have to add a rule in my loop that if $machine = 1 , then $machine = (text name - like Zeus) So it would show up as , Machine : Zeus instead of Machine : 1 Am I on the right path or can anyone provide constructive criticism in the way of helping me finish this out. Thanks much and its appreciated. I also realize that I'd have to redo the query so that it wold not serch just for machine = 1, but for all machines. I would just change the limit to 10 so I'd pull the top 10 by datetime , which would be the latest 10 to be updated (which the script would do). [code] include 'config.php'; $db = mysql_connect("$dbhost", "$dbuser", "$dbpass", $dbname); $dbname = mysql_select_db($dbname); $query = "SELECT machine, available, total, dt FROM memory WHERE machine = 1 ORDER BY dt desc LIMIT 1"; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { echo "Machine :{$row['machine']} <br>" . "Available : {$row['available']} <br>" . "Total :{$row['total']} <br>" . "Date/Time : {$row['dt']}<br><br>"; } $query_cpu = "SELECT machine, idle, dt FROM cpu WHERE machine = 1 ORDER by dt desc LIMIT 1"; $cpuresult = mysql_query($query_cpu); while($row = mysql_fetch_assoc($cpuresult)) { echo "Machine :{$row['machine']} <br>" . "Idle : {$row['idle']} <br>" . // "Total :{$row['total']} <br>" . "Date/Time : {$row['dt']}<br><br>"; } $query_load = "SELECT machine, 0avg, 5avg, 15avg, dt FROM `load` WHERE machine = 1 ORDER by dt desc LIMIT 1"; $loadresult = mysql_query($query_load); while($row = mysql_fetch_assoc($loadresult)) { echo "Machine :{$row['machine']} <br>" . "0 avg : {$row['0avg']} <br>" . "5 avg :{$row['5avg']} <br>" . "15 avg :{$row['15avg']} <br>" . "Date/Time : {$row['dt']}<br><br>"; } $query_hdd = "SELECT machine, available, total FROM hdd where machine = 1 ORDER by dt desc LIMIT 1"; $hddresult = mysql_query($query_hdd); while($row = mysql_fetch_assoc($hddresult)) { echo "Machine :{$row['machine']} <br>" . "HDD Available : {$row['available']} <br>" . "HDD Total :{$row['total']} <br>"; } [/code]