1. Список говнокодов пользователя frant

    Всего: 1

  2. PHP / Говнокод #9784

    +151

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    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
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    $query=mysql_query("SELECT `harak`
    FROM `contacts`
    WHERE db_name=`MSSQL2008R2`");
    $row=mysql_fetch_array($query);
    echo "$row['harak']";
    $a[0]=array($sybd=$_POST['sybd']); 
    $a[1]=array($sybd1=$_POST['sybd1']);
    $a[2]=array($sybd2=$_POST['sybd2']);
    $a[3]=array($sybd3=$_POST['sybd3']);
    $a[4]=array($sybd4=$_POST['sybd4']);
    $a[5]=array($harak=$_POST['harak']);
    $a[6]=array($harak1=$_POST['harak1']);
    $a[7]=array($harak2=$_POST['harak2']);
    $a[8]=array($harak3=$_POST['harak3']);
    $a[9]=array($harak4=$_POST['harak4']);
    $a[10]=array($harak5=$_POST['harak5']);
    $a[11]=array($harak6=$_POST['harak6']);
    $a[12]=array($harak7=$_POST['harak7']);
    $a[13]=array($harak8=$_POST['harak8']);
    $a[14]=array($harak9=$_POST['harak9']);
    if (isset ($_POST['sybd']) or isset ($_POST['sybd1']) or isset ($_POST['sybd2'])or isset ($_POST['sybd3']) or isset ($_POST['sybd4'])
    or isset ($_POST['harak']) or isset ($_POST['harak1']) or isset ($_POST['harak2']) or isset ($_POST['harak3']) or isset ($_POST['harak4']) or isset ($_POST['harak5'])
    or isset ($_POST['harak6']) or isset ($_POST['harak7']) or isset ($_POST['harak8']) or isset ($_POST['harak9'])) 
    {
    echo "<table border=1>";
    echo"<tr><td></td>";
    foreach ($a[0] as $sybd) {
    echo "<p><td>".$sybd."</td></p>";
    }
    
    foreach ($a[1] as $sybd) {
    echo "<p><td>".$sybd1."</td></p>";
    }
    foreach ($a[2] as $sybd) {
    echo "<p><td>".$sybd2."</td></p>";
    }
    foreach ($a[3] as $sybd) {
    echo "<p><td>".$sybd3."</td></p>";
    }
    foreach ($a[4] as $sybd) {
    echo "<p><td>".$sybd4."</td></tr></p>";
    }
    foreach ($a[5] as $sybd) {
    echo "<p><tr><td>".$harak."</td></p>";
    echo "<p><td>nnn</td></tr></p>";
    }
    
    foreach ($a[6] as $sybd) {
    echo "<p><tr><td>".$harak1."</td></p>";
    echo "<p><td>ffjfj</td></tr></p>";
    }
    foreach ($a[7] as $sybd) {
    echo "<p><tr><td>".$harak2."</tr></td></p>";
    }
    foreach ($a[8] as $sybd) {
    echo "<p><tr><td>".$harak3."</tr></td></p>";
    }
    foreach ($a[9] as $sybd) {
    echo "<p><tr><td>".$harak4."</tr></td></p>";
    }
    foreach ($a[9] as $sybd) {
    echo "<p><tr><td>".$harak5."</tr></td></p>";
    }
    foreach ($a[10] as $sybd) {
    echo "<p><tr><td>".$harak6."</tr></td></p>";
    }
    foreach ($a[11] as $sybd) {
    echo "<p><tr><td>".$harak7."</tr></td></p>";
    }

    Однокурсница с колхоза делает дипломную работу, попросила помочь кинув кусок кода >_<

    frant, 27 Марта 2012

    Комментарии (3)