OK got that fixed now im getting this error
QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND magColumn='1' AND magVisible='yes'' at line 1
Query was SELECT magID,magLocation,magText FROM newsMagazine WHERE magLocation= AND magColumn='1' AND magVisible='yes'
here is the line of code:
$rm1=$db->fetch_row($db->query("SELECT magID,magLocation,magText FROM newsMagazine WHERE magLocation={$ir['location']} AND magColumn='1' AND magVisible='yes'"));
$rm2=$db->fetch_row($db->query("SELECT magID,magLocation,magText FROM newsMagazine WHERE magLocation={$ir['location']} AND magColumn='2' AND magVisible='yes'"));
Thank for any help... really appreciate it