I have a database with a row 'genre' this contains all types of genres for the movie seperated by a space like an example of this would be
Animation Comedy Horror
They are all different genres so they need to be pulled out of the database and put in an array based on their genres I originally began coding this:
<?
sql = "SELECT moviename,genre FROM movieHosting";
$query = mysql_query($sql);
$row = mysql_fetch_object($query);
?>
But I soon realized shortly after that every genre is going to be needed to be put in the array seperate if I did
$genreArray = array($row->genre);
But this wont work it would generate an array like
$genreArray = array("Animation Comedy Horror");
But it needs to generate
$genreArray = array("Animation","Comedy","Horror");