Daney11 Posted March 5, 2008 Share Posted March 5, 2008 Hey guys, Im using if (isset($_GET['id'])) { $id = (int) $_GET['id']; } else { $id = 0; } if (isset($_GET['member_code'])) { $getmember_code = $_GET['member_code']; } else { $getmember_code = 0; } if (($id > 0) &&(strlen($getmember_code) == 32)) { $UpdateStatus = "UPDATE members SET member_active = 'Yes' WHERE (member_id = $id AND member_active = '".escape_data($getmember_code)."') LIMIT 1"; $UpdateResult = mysql_query($UpdateStatus, $connect) or die(mysql_error()); if (mysql_affected_rows() == 1) { echo "Yes"; } else { echo "No"; echo $UpdateStatus; } mysql_close(); } else { echo "SeeYa"; } And it isnt working..... The result im getting is... No UPDATE members SET member_active = 'Yes' WHERE (member_id = 13 AND member_active = '574709b541e5382feeb6a39176a1f2b8') LIMIT 1 Which is correct. $connect is to connect to my database in settings.php included at the top.... I cannot figure out why it isnt Updating.. Any ideas? Thanks Link to comment https://forums.phpfreaks.com/topic/94470-activation/ Share on other sites More sharing options...
Daney11 Posted March 5, 2008 Author Share Posted March 5, 2008 sorted Link to comment https://forums.phpfreaks.com/topic/94470-activation/#findComment-483767 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.