You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sql = "SELECT q.id as quiz_id, s.title_name as title_name,(SELECT f.pic_path FROM frame f WHERE f.story_id = s.id ORDER BY f.id ASC LIMIT 1) as pic_path FROM quiz q inner join story s on q.story_id = s.id";
// Condition to connect database
$result = mysql_query($sql) or die(mysql_error());
//Add id and title
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {