Hi Everyone
I hope someone can realy help me, I’ve tried several forums and no one is been able to help me.
The problem with this script is that all I’m getting is a blank drop menu.
I’ve checked the rows number and I have it right.
Please help
[php]
<?PHP mysql_connect("localhost", "xxxx_xxxx", "xxxx") or die(mysql_error()); mysql_select_db("xxxx") or die(mysql_error()); $sql = "SELECT DISTINCT date FROM `ihsreg` ORDER BY 'date' DESC"; if (!(@ $result = mysql_query($sql))) { print "There was an error running your query:n". $sql . "
n";
}
print '
n';
print ' Choose One ';
while ($row = mysql_fetch_row($result)) {
$id = $row[0];
$date = $row[26];
print " $date
n";
}
print '';
?>
[/php]
Admin Edit: Added [PHP] Code tags for readability. Please see http://phphelp.com/guidelines.php for posting guidelines