Hey everybody, I've got a interesting issue I hope someone here can shed some light on. I'm using PHP and mySQL to pull some data from a database and add up groups of info. I'm using the fallowing code.
<?
$con = mysql_connect("***","***","***");
mysql_select_db("qdts",$con);
$sql = "SELECT exe, SUM(runnningTime) FROM Repository GROUP BY exe";
$result = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo "<center>".$row2['exe']." is at ".$row2['SUM(runningTime)']."<br>"."</center>";
echo $row['SUM(runningTime)'];
}
?>
but I just get "firefox.exe is at " in the browser. The funny thing is if I run the query directly in the mySQL console it runs just fine. This is the only code I have on this page.
Any ideas on why this would happen? Thank you all in advance for all your input.
-Dan