I deduce the data from the database as follows:
$result = mysql_query('SELECT * FROM `users` WHERE id = '.$uid.''); while ( $users = mysql_fetch_array( $result ) ) { echo = ''.$users['first_name'].''; }
I can use the $users['first_name']
variable only inside while {}
How to make it so that you can use it in any part of the page by writing
<?=$users["first_name"]?>
ps: yes, noob
pps: answer preferably deployed