asked on
ASKER
list($artist, $title) = split(' - ',$song[0], 2);
$result = mysq_query("SELECT id, artist, title, picture, buycd, label, composer, rating, numvotes, duration, date_played FROM songlist WHERE artist='" . mysql_real_escape_string($artist) ."' AND title='" . mysql_real_escape_string($title) . '"';
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
SELECT s.id, s.artist, s.title, s.picture, s.buycd, s.label, s.composer, s.rating, s.numvotes, s.duration, s.date_played FROM songlist s WHERE ((s.artist + ' - ' + s.title) = '$song[0]') LIMIT 0,1