Darrel St Croix wrote: > Thanks for that. > > I have changed the code as you suggested, but there is an error on the while > loop. > > *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL > result resource in *C:\wamp\www\draft\basket.php* on line *46* > That's because $result is not valid because the query failed. You'd see this if you turned on error reporting. BY is not valid in your query, maybe ORDER BY? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php