RTFM по словам BEGIN, COMMIT, ROLLBACK, но скорее всего проблема в последнем вашем ответе."Тразакциями не пользуетесь?" непонял
if(isset($_GET['rd']))
{
if($_GET['rd']=="rd")
{
if(isset($writing)){
if(isset($_POST['msg']) & isset($_POST['name']) & isset($_POST['id'])) {
$msg=$_POST['msg']; $name=$_POST['name']; $idс=$_POST['id'];}
mysql_query("update '$table' set msg=333 , name=333 where id=$idс");
echo"
<html>
<head>
<META http-equiv=Content-Type content='text/html; charset=windows-1251'>
</head>
<script language='Javascript'><!--
function reload() { location='index.php' }; setTimeout('reload()',1500);
//--></script>
Запись обновлена";
exit;
}
if(isset($_GET['id']))
{$id=$_GET['id'];}
$rid=mysql_query("select * from $table where id=$id");
$s=mysql_fetch_array($rid);
echo"
<form action=update.php?rd=rd&writing method=post>
<input type=text name=msg value=$s[msg]><br>
<input type=text name=name value=$s[name]><br>
<input type=hidden name=id value=$id>
<input type=submit value=red>
</form>";
exit;
}
}