Hi,
I wonder if someone can show me the correct code.
I wish to update details of a user out of many users in the table, but only in his last updated file. He may have many previous files but I do not want any of these altered only his most upto date entry.
The script below alters all his previous files which I do not require.
How do I go about just doing his/her most uptodate entry..
//update purchased credit table
$query = "UPDATE AUCTION_purchcredit
SET pp_verified = 'Y',
ver_date = '$VERIFIEDATE'
WHERE user_id='".$_SESSION ["AUCTION_LOGGED_IN"]."'";
$res = mysql_query($query);
if(!$res) {
MySQLError($query);
exit;
}
Cheers in anticipation
Newbie John
I wonder if someone can show me the correct code.
I wish to update details of a user out of many users in the table, but only in his last updated file. He may have many previous files but I do not want any of these altered only his most upto date entry.
The script below alters all his previous files which I do not require.
How do I go about just doing his/her most uptodate entry..
//update purchased credit table
$query = "UPDATE AUCTION_purchcredit
SET pp_verified = 'Y',
ver_date = '$VERIFIEDATE'
WHERE user_id='".$_SESSION ["AUCTION_LOGGED_IN"]."'";
$res = mysql_query($query);
if(!$res) {
MySQLError($query);
exit;
}
Cheers in anticipation
Newbie John