April 1st, 2013, 08:06 AM
First if you are just learning stop! Do not use the deprecated MySQL extensions. Switch to PDO
Second, if you are getting results from your query where there is no audio then your query is suspect. Perhaps the audio column in your database is not null but instead contains whitespace. Echo $audio_check to see if it contains what you expect.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
Last edited by gw1500se : April 1st, 2013 at 05:04 PM.