I don't know what it is about MySQL, but it completely fucks with my head. All I want to do is pull some data from the database and display it on the page. Very simple. Yet, I've spent the past 2 hours with G**gle, Notepad++ and various PHP / MySQL sites and still can't get the required results.
HELP!!
Code:
$sql = mysql_query('SELECT title FROM musicvids WHERE artist LIKE "$artist"') or die (mysql_error());
while($row = mysql_fetch_array($sql))
{
$row_array[] = $row['title'];
echo $row['title'];
}
echo "<br /><br />";
HELP!!