connect_error) { die("Connection failed: " . $conn->connect_error); } // start for the banner add counting and getting from table $sql = "SELECT * FROM banner_ups where product = '$next3' AND picture IS NOT NULL ORDER BY RAND()"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row echo "
"; echo ""; while($row = $result->fetch_assoc()) { echo ""; } } echo "
 
"; echo "
"; $conn->close(); // Banner Ads end ?>
Advertisement