Jump to content

Update query help


eleven0

Recommended Posts

$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.

 

 

Link to comment
https://forums.phpfreaks.com/topic/95254-update-query-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.