Codice PHP:
$risultato mysql_query("SELECT * FROM shopping where categoria='$cat' ") or die(mysql_error() );