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!

Member Avatar for diafol

I'm not sure what you need. COuld you describe this in greater detail?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.