- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
$vv = $_GET['new'];
$v1 = $_GET['1'];
$v2 = $_GET['2'];
$v3 = $_GET['3'];
$v4 = $_GET['4'];
$v5 = $_GET['5'];
$v6 = $_GET['6'];
$v7 = $_GET['7'];
$v8 = $_GET['8'];
$v9 = $_GET['9'];
$v10 = $_GET['10'];
$v11 = $_GET['11'];
$v12 = $_GET['12'];
if (mb_strlen($vv) >= 1) {
mysql_query ("INSERT INTO vote (title, votes) VALUES ('$vv', '0')");
header('Location: /index.php');
exit;
}
if (mb_strlen($v1) >= 1 or mb_strlen($v2) >= 1 or mb_strlen($v3) >= 1 or mb_strlen($v4) >= 1 or mb_strlen($v5) >= 1 or mb_strlen($v6) >= 1 or mb_strlen($v7) >= 1 or mb_strlen($v8) >= 1 or mb_strlen($v9) >= 1 or mb_strlen($v10) >= 1 or mb_strlen($v11) >= 1 or mb_strlen($v12) >= 1) {
mysql_query ("UPDATE vote SET title='$v1' WHERE id='1'");
mysql_query ("UPDATE vote SET title='$v2' WHERE id='2'");
mysql_query ("UPDATE vote SET title='$v3' WHERE id='3'");
mysql_query ("UPDATE vote SET title='$v4' WHERE id='4'");
mysql_query ("UPDATE vote SET title='$v5' WHERE id='5'");
mysql_query ("UPDATE vote SET title='$v6' WHERE id='6'");
mysql_query ("UPDATE vote SET title='$v7' WHERE id='7'");
mysql_query ("UPDATE vote SET title='$v8' WHERE id='8'");
mysql_query ("UPDATE vote SET title='$v9' WHERE id='9'");
mysql_query ("UPDATE vote SET title='$v10' WHERE id='10'");
mysql_query ("UPDATE vote SET title='$v11' WHERE id='11'");
mysql_query ("UPDATE vote SET title='$v12' WHERE id='12'");
header('Location: /');
exit;
}
guest 30.04.2016 22:12 # +2
3_dar 30.04.2016 22:43 # +1
Неужели это с реального проекта?
guesto 02.05.2016 16:40 # +1
Пыховцы не могут иначе
3_dar 02.05.2016 16:43 # +1
Но голосовалка...
slowpoke59rus 03.05.2016 00:02 # +1