connect_error) { die("Connection failed: " . $conn->connect_error); } // start for the banner add counting and getting from table $sql = "SELECT * FROM banner_ups_new WHERE ROS LIKE 'yes' AND product IS NULL AND picture IS NOT NULL ORDER BY RAND()"; $result = $conn->query($sql); // banner rotating section while($row = mysqli_fetch_array($result)) { $banCount = $row['Views']; echo $row['id'] . ' ' . $row['Views'] . '
'; ?>

: