Размер файла: 540B
- <?php
-
- include'../system/config.php';
-
-
- $id_mess=$_GET['id_mess'];
- if($id_mess==""){ echo'ERROR'; exit;}
-
- $er_id_mess=mysql_num_rows(mysql_query("SELECT * FROM `forum_messages` WHERE `id_mes`='$id_mess'"));
- if($er_id_mess==0){ echo'ERROR'; exit;}
- $cog=mysql_fetch_array(mysql_query("SELECT * FROM `forum_messages` WHERE `id_mes`='$id_mess'"));
- $savv=$cog['file_c']+1;
- mysql_query("UPDATE `forum_messages` SET `file_c`='$savv' WHERE `id_mes`='$id_mess'");
- header('Location: '.$cog['file_f']);
- include'../system/foot.php';
- ?>