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

[eluser]Kentish[/eluser]
Hello, need some help for the following:
Code:
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 * ?


#2

[eluser]CroNiX[/eluser]
Code:
$row = $result->row();

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




Theme © iAndrew 2016 - Forum software by © MyBB