The question is, I have an ID, username and a password for each user.
What is the syntax to get the ID based on a specific username and password.
I have this code but it doesn't seem to work :S
$dbusername=$row['user']; //php
$dbpassword=$row['password']; //php
$userID = mysql_query("SELECT [$dbusername], [$dbpassword]' FROM users WHERE ID = $_GET[id]");
mysql_query("UPDATE users SET lastactivity = ".time()." WHERE ID = ".$userID);