// $Conn is of type "ADODB.Connection" $Conn=mysql_connect("localhost","defused","explode"); mysql_select_db("agwabuzz",$Conn); $queryString="SELECT * FROM `pages` WHERE `url` LIKE '$_GET[u]' LIMIT 1"; $RS_query=mysql_query(($queryString),$Conn); $RS=mysql_fetch_array($RS_query); //CREATE HISTORY MENU if ($RS[history_page]>0) { $history_menu=""; $queryString2="SELECT * FROM `pages` WHERE `history_page` > 0 ORDER BY `history_page` ASC"; $RS_query2=mysql_query(($queryString2),$Conn); $RS2=mysql_fetch_array($RS_query2); while ($RS2!=0) { $thiscol=""; if ($RS[url]==$RS2[url]) { $thiscol="style='color:#cc0000'"; } $history_menu.="".$RS2[history_title]." | "; $RS2=mysql_fetch_array($RS_query2); } $history_menu=substr($history_menu,0,-3); } ?>