connect_error > 0) { die('Could not connect: ' . $dbconn->connect_error); exit(); // you should redirect to some form of error page !!!! } $result = mysqli_query($dbconn, "SELECT * FROM drinks WHERE drinktype=2"); $datatable = ""; while($row = mysqli_fetch_array($result)) { $datatable.= ""; $datatable.= ""; $datatable.= ""; } $datatable.= "

Spirits

" . $row['drink'] . " - £" . $row['price']. "

"; //close connection mysqli_close($dbconn); ?> Wheres My Local
Back
Cart

© Find My Local 2022