"PHP" / Говнокод #13198 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
......................
if (isset ($_POST['cell121']))   {$cell121 = $_POST['cell121'];}
else {
$cell121 = 0;
}
if (isset ($_POST['cell122']))   {$cell122 = $_POST['cell122'];}
else {
$cell122 = 0;
}
if (isset ($_POST['cell123']))   {$cell123 = $_POST['cell123'];}
else {
$cell123 = 0;
}
if (isset ($_POST['cell124']))   {$cell124 = $_POST['cell124'];}
else {
$cell124 = 0;
}
if (isset ($_POST['cell125']))   {$cell125 = $_POST['cell125'];}
else {
$cell125 = 0;
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/style.css"/> <!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--><head>


<body>

<div class="container">
<header>   
<?php include("page/header.php"); ?>
</header>
<title>Документ без названия</title>
<?php include("page/right.php"); ?>
<article class="content">
<h1>Входящие</h1>
<section>

<?php
$result = mysql_query 
("INSERT INTO fuckingbox (cell1,cell2,cell3,cell4,cell5,cell6,cell7,cell8,cell9,cell10,cell11,cell12,cell13,cell14,cell15,cell16,cell17,cell18,cell19,cell20,cell21,cell22,cell23,cell24,cell25,cell26,cell27,cell28,cell29,cell30,cell31,cell32,cell33,cell34,cell35,cell36,cell37,cell38,cell39,cell40,cell41,cell42,cell43,cell44,cell45,cell46,cell47,cell48,cell49,cell50,cell51,cell52,cell53,cell54,cell55,cell116,cell117,cell118,cell119,cell120,cell121,cell122,cell123,cell124,cell125) 
VALUES ('$cell1', '$cell2', '$cell3', '$cell4', '$cell5', '$cell6', '$cell7', '$cell8', '$cell9', '$cell10', '$cell11', '$cell12', '$cell13', '$cell14', '$cell15', '$cell16', '$cell17', '$cell18', '$cell19', '$cell20', '$cell21', '$cell22', '$cell23', '$cell24', '$cell25', '$cell26', '$cell27', '$cell28', '$cell29', '$cell30', '$cell31', '$cell32', '$cell33', '$cell34', '$cell35', '$cell36', '$cell37', '$cell38', '$cell39', '$cell40', '$cell41', '$cell42', '$cell43', '$cell44', '$cell45', '$cell46', '$cell47', '$cell48', '$cell49', '$cell50', '$cell51', '$cell52', '$cell53', '$cell54', '$cell55', '$cell116', '$cell117', '$cell118', '$cell119', '$cell120', '$cell121', '$cell122', '$cell123', '$cell124', '$cell125')");
if ($result == 'true') { echo "Ваше письмо добавлено" ;}
else { echo "Ошибка какая то" ;}

?>

это из реального проекта который еще умудрились продать

Запостил: durachook durachook, (Updated )

Комментарии (11) RSS

  • А ведь где-то есть человек, который помнит, что хранится в cell1..cell125. Он всегда перечисляет только нужные поля.
    Но когда-нибудь придёт питушок и перепишет это с питушарским
    for($i=1; $i<126; ++$i)
    Ответить
  • тут вообще у автора беда с названиями: right.php, Документ без названия... не удивлюсь, если он все это ваял в ворде.
    Ответить
  • На сколько я помню ХТМЛ, титл все же хеде должен быть, а не в боди...
    Ответить

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8