connect_errno) { echo "

MySQL error no {$mysqli->connect_errno} : {$mysqli->connect_error}

"; exit(); } //select latest added cars from db $latest = "SELECT * from cars order by car_id desc limit 5"; ?>

Latest added cars. Login now to make a booking!

query($latest); if ($result->num_rows > 0) { while($found = $result->fetch_array()){ //echo latest added cars echo "

new".$found["car_brand"]."Description


  • ".$found["car_cc"]."cc


  • Locations:
    ".$found["car_address"]."

".$found["car_price"]." Euro
per day
x

".$found["car_description"]."

"; } } else if ($result->num_rows == 0){ echo "No cars found"; } else { echo "

MySQL error no {$mysqli->errno} : {$mysqli->error}

"; exit(); }?>