Jump to content
MakeWebGames

ReTech

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by ReTech

  1. ReTech

    query wont execute

    could someone please help me I have been trying to help a friend with his code for a few weeks now and it seems that the first query will not work for the if statement. i changed it ($slot_display) to a function and got it to display on the page, but I am far from being an expert... is there anything obviously wrong here besides depreciated code lol   <? include 'db.php'; $genre = $_GET[id]; $result = mysql_query("SELECT `timeslot` FROM `aclient`"); $slot_display = mysql_fetch_row($result); if($slot_display == 4){ $resultb = mysql_query("SELECT `aad` FROM `aprog` WHERE `tag`='$genre'"); $songid = mysql_fetch_array($resultb); } $finalq = mysql_query("SELECT * FROM `mtracks` WHERE `id`='$songid'"); $shmedia = mysql_fetch_array($finalq); ?>   i know this is a little off topic for this site but i figured i would ask somebody ... and fyi the timeslot does = 4
×
×
  • Create New...