se me ocurre esto para el primer error, quedo atento
Código PHP:
Ver original<?php
$stock_sql="SELECT stock.stockID, stock.name, stock.topline, category.name AS catname FROM stock JOIN category ON stock.categoryID=category.categoryID Where stock.categoryID=".$_GET['categoryID'];
if(!$stock_query){
}
?>