I have a problem when i submit or update this data. The data cannot update.
this code :
if(isset($_GET[\'newsid\'])){
if(isset($_POST[\'submit\'])){
aaaa in the bind parameters is not valid, it needs to be s for string or i for integer or d for double
Looking at your SQL Update statement
UPDATE news set title =?, short_desc =?, isi =?, author =?, status =?, category =? WHERE newsid =?
I can count 7 parameters. When I look at your bind_param
call
$sql->bind_param('aaaaa',
$title,$short_desc,$isi,$author,$status,
$date_period_start, $date_period_end, $category);
I count 5 type characters ('aaaaa'
) and 8 parameters ($title, $short_desc, $isi, $author, $status, $date_period_start, $date_period_end, $category
). These all need to match. Reading this might help.