Jump to content

[SOLVED] Array help please


Calver

Recommended Posts

Hello, I was very pleased to get a row of data from my database into an array, but I can't find out how to access it.

 

This is what I get from: var_dump($this->row);

 

array

  0 =>

    array

      'id' => int 1

      'firstname' => string 'Samuel' (length=6)

      'lastname' => string 'Cross' (length=5)

      'username' => string 'sammy' (length=5)

      'password' => string '47bce5c74f589f4867dbd57e9ca9f808' (length=32)

      'emailadd' => string 'sammy@somedomain' (length=16)

      'about' => string '' (length=0)

      'status' => int 1

      'activationkey' => string '' (length=0)

 

How do I retrieve a specific field, eg $firstname = ?

 

Link to comment
https://forums.phpfreaks.com/topic/175030-solved-array-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.