Welcome Guest, Not a member yet? Register   Sign In
Retrieving records from db

Hello, need some help for the following:
return $result->row(0)->Name;

Normally, when returning a particular column in a db, we put the column name at the end of the command, as in this case Name.

What is the command when am selecting all columns? That is, when doing a SELECT * ?


$row = $result->row();

echo $row->Name;
echo $row->Some_other_field;

Theme © iAndrew 2016 - Forum software by © MyBB