Jump to content

[SOLVED] getting user info


jimbo_3000

Recommended Posts

 

I am trying  to get the users info from an array but i am only getting this.

 

 

 

Jim_bo

 

Array:

 

Tammy

 

Array:

-------------------

How can I  display the Id, the username and the rest of the information thats there. 

 

Thanks,

Jim

 

 

<?php 

$users = array(
		'Jim_bo' => array ('id' => 10001, 'Username' => 'Jim_bo1',
	'FullName' => 'Jim Carr', 'Password' => 'pass',
	'Email' => '[email protected]'),

	'Tammy' => array ('id' => 10002, 'Username' => 'TammyG',
	'FullName' => 'Tammy Gebremicael', 'Password' => 'pass1',
	'Email' => '[email protected]')

			);
foreach ( $users  as  $user_data => $field )

{
echo "<p>$user_data</p>  <p>  $field: </p>";				

}				
?>

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/141373-solved-getting-user-info/
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.