<?php
$mysqli = mysqli_init();
$mysqli->real_connect("mysq.x.com","me","wordup","inthekitchin");
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
$res = $mysqli->query("UPDATE plate1 SET potatoes =('$_POST[potatoes]') WHERE id =('$_POST[id]')");
$row = $res->fetch_assoc();
?>
returnes errorFatal error: Call to a member function fetch_assoc() on a non-object in /home/public_html/addvegtables.php on line 13
the way i was working was
1 what would you like to do . == UPDATE the poatoes coll on plate1
2 where would you like to do it == plate1
3 put potatoes on plate == set
4 where r the potatoes from ? == $_POST
5 which plate would you like to update? == from $_POST.
which bit am i missing ?
thanks :)