I'm new to MySQL Queries. This is what I have so far what did I do wrong?
"INSERT INTO users (ip) WHERE id = '".$_SESSION["user"]["id"]."'
VALUES ('$ip')"
EDIT
I just was asking about how my syntax was wrong. I understand the vulnerabilities, and did not paste them in my question. I am using the PDO library and mysql_real_string_escape WHENEVER I can...