Jump to content

update not working


almightyegg

Recommended Posts

$update = mysql_query("UPDATE clutch (rank1, rank2, rank3, rank4, rank5, rank6, rank7, rank8, rank9, rank10, rank11, rank12, rank13, rank14, rank15, 
rank1color, rank2color, rank3color, rank4color, rank5color, rank6color, rank7color, rank8color, rank9color, rank10color, rank11color, rank12color, rank13color, rank14color, rank15color)
VALUES('$rank1', '$rank2', '$rank3', '$rank4', '$rank5', '$rank6', '$rank7', '$rank8', '$rank9', '$rank10', '$rank11', '$rank12', '$rank13', '$rank14', '$rank15', 
'$rank1color', '$rank2color', '$rank3color', '$rank4color', '$rank5color', '$rank6color', '$rank7color', '$rank8color', '$rank9color', '$rank10color', '$rank11color', '$rank12color', '$rank13color', '$rank14color', '$rank15color')
WHERE id = '{$clutch['id']}'");

 

It shows no error but when doing:

if(!$update){

echo "An error occured during the update process.";

}else{

echo "Ranks have been updated successfully.";

}

 

it shows: An error occured during the update process.

 

Link to comment
https://forums.phpfreaks.com/topic/45804-update-not-working/
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.