php - Trying to get property of non-object in line 34 -


for reason on localhost xampp server dont issue. when upload vps. error appears.

"trying property of non-object in viewjobs.php on line 34"

$sql = "select id, name, model, jobdesc, paid, price, phone, address, postcode, password, notes, status jobs"; $result = $conn->query($sql);  if ($result->num_rows > 0) {     // output data of each row     while($row = $result->fetch_assoc()) {         echo "<table class='table table-striped table-hover '> 

this line 31 - 37.


Comments