I have a query that never returns any results or errors. When I run the sql directly through phpmyadmin the results come back fine.
just trying to dump row right now to see whats coming back
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
$sql = "SELECT ProductID,Name FROM products WHERE ProductID > 5 ORDER BY ProductID DESC";
$query = mysql_query($sql);
while ($row = mysql_fetch_object($query)){
var_dump($row);
}
?>