How is it done?
I tried the following, but it says I have a syntax error from the first line of code...
Code: Select all
$q = "UPDATE table1 SET title=?, description=?, price=?, location=?, email=?, date=? WHERE id=$id";
$stmt = mysqli_prepare($dbc, $q);
mysqli_stmt_bind_param($stmt, 'ssisss', $title, $descrip, $pri, $loc, $e, $date1);
mysqli_stmt_execute($stmt);