I get the following:
Array ( [0] => 1 [id] => 1 [1] => 778613c4344dbc9565c359c1154c6a18 [session] => 778613c4344dbc9565c359c1154c6a18 [2] => fn [first_name] => fn [3] => ln [last_name] => ln [4] => un [username] => un [5] => 016e6128e8ca9dda1b310c364d9b622c [password] => 016e6128e8ca9dda1b310c364d9b622c [6] => address [email] => address [7] => 100 [permission] => 100 [8] => 10 [year_level] => 10 [9] => [department] => [10] => Sample [campus] => Sample [11] => 0 [logo_url] => 0 )
After running this
$user = mysql_fetch_array(mysql_query("SELECT session FROM users WHERE username='$cookie[username]' AND first_name='$cookie[first_name]' AND last_name='$cookie[last_name]' AND campus='$cookie[campus]' AND id='$cookie[id]'"))
Any ideas why he duplicates this? Thanks
EDIT: I think the primary key does this. Any idea on how to stop it?
source share