I
nternet gathering place for custom rod builders
Buy/Swap/Sell Page




Most Recent | For Sale | For Trade | Wanted | Post Your Own
"; echo "$cat_name"; echo "
    "; $connection = mysql_connect("localhost","rodboard2","qm2g.bp"); mysql_select_db("rodbuilding",$connection); if ($cat=='1') { $query = "select * from swaps order by swap_id DESC LIMIT 10"; } else { $query = "select * from swaps where swap_cat='$cat' order by swap_id DESC"; } $result = mysql_query($query,$connection) or die("Error in query"); while ($row = mysql_fetch_array($result)) { extract($row); //if there's a photo, indicate it with a picture icon if (!empty($photo)) { echo ""; } else { echo ""; } echo "$swap_title - $swap_name

    "; } echo "

"; ?>