Jump to content

Collect username automatically


Pavlos1316

Recommended Posts

ok so do something like this

 

$id= session_regenerate_id

 

$query = "SELECT * FROM table WHERE ID = '$id' LIMIT 1";

if ($result = mysql_query($query)){

    if (mysql_num_rows($result)) {

        $array = mysql_fetch_assoc($result);       

        $user = $array['Username'];

 

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.