So here is what I want.
if (tracks, the db) (user_id, the row) for '".$_SESSION['user']['id']."' = equal (tracks, row) in (users, the db) for '".$_SESSION['user']['id']."' exit else update (users, the db) (tracks, the row) to match.
This isn't the script as I don't know where to start but I am looking on how to do this to no anvil, another solution is when my insert script is done and is successful then update another table in the db but I also wouldn't know where to start that :/ any help greatly appreciated!