How can i check the result of my query? I try this, but when the result is empty - error doesn't shows.
$result = sqlite_query($db, "SELECT * FROM catalog WHERE cat=".$_GET["cat"]." AND size".$size."");
if($result !== 0) {
while ($row = sqlite_fetch_array($result)) {
echo '<img src="'.$row['img1'].'" alt="'.$row['id'].'" />'."\r\n";
}
} else {
err2();
}