-3
$stmt = $db->prepare('UPDATE blog set entrytitle = ?,blogentry = ? where id = ?')
$stmt->bind_param("ssi", $entrytitle,$blogentry,$id);

The error is from the second line but I get the feeling it's being caused by the UPDATE query.

DB columns for the items are:

entrytitle is varchar(65) blogentry is longtext id is int(11)

AbraCadaver
  • 78,200
  • 7
  • 66
  • 87
user3115806
  • 45
  • 1
  • 4

2 Answers2

2

You forgot a semi-colon on line 1...

$stmt = $db->prepare('UPDATE blog set entrytitle = ?,blogentry = ? where id = ?');
$stmt->bind_param("ssi", $entrytitle,$blogentry,$id);

Now the second $stmt is unexpected.

L00_Cyph3r
  • 669
  • 4
  • 18
1

There is a missing semicolon, replace

$stmt = $db->prepare('UPDATE blog set entrytitle = ?,blogentry = ? where id = ?') // <-- missing semicolon here!

with

$stmt = $db->prepare('UPDATE blog set entrytitle = ?,blogentry = ? where id = ?'); // <-- now fixed

but let me say, this is simple standard debugging...

Matteo Tassinari
  • 18,121
  • 8
  • 60
  • 81