eleven0 Posted March 9, 2008 Share Posted March 9, 2008 $i=$_POST['id'] include 'config2.php'; include 'opendb.php'; $query = "UPDATE members SET tag='$t', name='$n', lastname='$ln', rank='$r', pos='$p', squad='$sq', asn='$as', tour='$tr'"; $result = mysql_query($query) or die(mysql_error()); echo "Changed"; How do i edit this code so it will only update the member with that "id" number instead of everyone in members table. Quote Link to comment Share on other sites More sharing options...
trq Posted March 9, 2008 Share Posted March 9, 2008 $query = "UPDATE members SET tag='$t', name='$n', lastname='$ln', rank='$r', pos='$p', squad='$sq', asn='$as', tour='$tr' WHERE id = $i"; Quote Link to comment Share on other sites More sharing options...
eleven0 Posted March 10, 2008 Author Share Posted March 10, 2008 Thanks thorpe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.