<?php
include_once 'dbconnect.php';
$flds= "UPDATE OFFICE SET OADD02=? WHERE OFFNO=$OFFNO";
$stmt = $mysqli->prepare($flds);
$stmt->bind_param('s',$OADD02);
$stmt->execute();
$stmt->close();
I execute the above and at the bind_param
it fails. My process is as such:
- The user goes into the form to update the information (information is display via mysqli queries);
- They click submit.
Initializing and populating $stmt
works, however when I get to bind_param
the page goes blank. Here is the URL: http://gccitech.com/iclub/office.php?ONO=4&ftype=m