08-13-2016, 07:45 AM
i've dump my variable and also tested the $postID. Even if i don't use any variable and type the string myself, the database still don't update.
And, how can i get the max id of the table? the code below shows me nothing.
$getid = DB::getInstance()->query("SELECT MAX(id) FROM users");
$results = $getid->results();
$id = $results['MAX(id)'];
echo $id;
And, how can i get the max id of the table? the code below shows me nothing.
$getid = DB::getInstance()->query("SELECT MAX(id) FROM users");
$results = $getid->results();
$id = $results['MAX(id)'];
echo $id;