0

I have this code

$savechanges = $dataserver->prepare("UPDATE hub_apps SET aname=?, aicon=?, aimage=?, atype=?, aurl=? WHERE id = ?");
$savechanges->bind_param('sssisi',
$_POST['app_name'],
$_POST['app_icon'],
$_POST['app_screen'],
$_POST['app_type'],
$_POST['app_url'],
$_GET['id']);
$savechanges->execute();
$savechanges->close();

It runs on my local server but online it fails with:

Fatal error: Call to a member function bind_param() on a non-object

on the bind_param line.

Am I missing something?

UPDATE: Well I followed user "Your Common Sense" link and added "or trigger_error($dataserver->error)". Turns out user didn't had UPDATE privileges. Thanks for the help :) My mistake. :X

0 Answers0