$result = $db->getAll($query);
if (DB::isError($result)){
echo $result->getMessage(); //replace $db with $result
echo "hello";
}
One last thing.
When you edit or write a post, use the special PHP BBCode tag of this forum.
Instead of the CODE tag.
In the tags buttons menu, the 4 buttons to the right are:
...... | CODE HTML PHP | QUOTE
looks like
.......| # <> php | Q
will highlight your code in colours like this
$result = $db->getAll($query);
if (DB::isError($result)){
echo $result->getMessage(); //replace $db with $result
echo "hello";
}
You should also find in the blue menu 'Thread Tools', above posts:
Thread Tools Search this Thread Rate Thread Display Modes
Mark this thread as RESOLVED