What I want to do is check if there are any IDs in a mysql table that are the same as eachother for the same username.
$info = odbc_exec($con,"SELECT ItemID FROM DATABASE WHERE strUserID = '".$user."'");
$ID = odbc_result($results, 1);
There will be multiple ItemIDs where strUserID is equal to $user and i want to check if ItemID is the same in two places. Sorry for repeating myself just trying to make it clear. It is probably quite easy to do I just have no idea how. Thanks for your time.