I\'m getting an undefined index error with this code:
// Select all bookings
$sql = \"SELECT * FROM booking\";
$result = mysqli_query($con,$sql);
echo \"
Put a piece of debug code into your script to proove that the name is correct:-
// Select all bookings
$sql = "SELECT * FROM booking";
$result = mysqli_query($con,$sql);
echo "";
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
print_r( $row ); // debug code
// echo $row['custName'] . " - " . $row['roomNb'] . " - " . $row['date'];
echo $row['custName'];
}