<?php $id = rand(1,2); $query = "SELECT songname FROM mp3 WHERE sgid = " .$id; $result = mysql_query($query,$connection); $mp3d = mysql_fetch_array($result); ?> the server is telling me line 43(which starts with $mp3d) is not a valid mysql result resource. what am i doing wrong?? chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- RE: [PHP]MySQL error, what's wrong here.. Chris Cocuzzo
- RE: [PHP]MySQL error, what's wrong here.. James Bogosian
- Re: [PHP]MySQL error, what's wrong here.. Chris Cocuzzo
- RE: [PHP]MySQL error, what's wrong here.. James Bogosian
- Re: [PHP]MySQL error, what's wrong here.. Christopher Ostmo
- Re: [PHP]MySQL error, what's wrong here... Chris Cocuzzo
- Re: [PHP]MySQL error, what's wrong... David Robley
- Re: [PHP]MySQL error, what's wrong here.. James Holloway
- Re: [PHP]MySQL error, what's wrong here.. Wagner Tomy
- RE: [PHP]MySQL error, what's wrong here.. Tim Ward