Assalomu alykum Aziz forumdoshlar shizlarga yangi yil sovg'asini taqdim etmoqchiman 
Sher ver 0.1 

Buni allbata takommilashtiraman kirib kelayotgan Yangi yiligiz bilan !!!!!!!
Keyingi versiyada 
1. LIKE va DISLIKE
2. Foydalanuvchi profilida yozgan sherlari bo'limi ochiladi
3. foydalanuvchi qancha like va disliko olgani chiqaramiz !!!!!



manimenu.php ga ushbu kodni yozing

/////////////////////////////
switch($_GET['djhuso'])
{
default:
echo'<div class="phdr">Sherlar makoni</div>';
    $total = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `maqola` WHERE  `mod` = 1  "), 0);
        if ($total) {
            $query = mysql_query("SELECT * FROM `maqola` WHERE  `mod` = 1 ORDER BY(`time`) DESC LIMIT " . $start . ", " . $kmess . "");
            $i = 0;

            while ($res = mysql_fetch_assoc($query)) {
              $time = functions::display_date($res['time']);
               echo'<div class="menu">'.$res['matn'].'</div>';
         if($rights >= 6) { echo ' <div class="rmenu"><a href="?djhuso=del&id='.$id.'&id='.$res['id'].'">O`chirish</a> || <a href="?djhuso=edit&id='.$res['id'].'">O`zgartirish</a> </div>'; }
                }

            echo '<div class="phdr">Barchasi: ' . $total . '</div>';
            if ($total > $kmess) {
                echo '<div class="topmenu">' . functions::display_pagination('?djhuso=catalog&amp;id='.$id.'&amp;', $start, $total, $kmess) . '</div>';
            }
        } else {
         
        }
/////////////////////////admin tekshiruvi///////////////
  if($rights >= 6) {
         
            $tekshiruv = mysql_result(mysql_query("SELECT COUNT(*) FROM `maqola` WHERE `mod` = 0"), 0);
            echo '<div class="rmenu">
                    <a href="?djhuso=mod">Tekshiruv</a> ('.$tekshiruv.')
            </div>';
        }
//////////////////////////////////////////////////////////


 echo '<div class="phdr">Sher qo\'shish</div>';
     $user = $user_id;
            if (isset($_POST['submit'])) {
                   $mod = ($rights >= 6 ? 1 : 0);
                mysql_query("INSERT INTO `maqola` SET
                `matn` = '" . functions::check(trim($_POST['matn'])) . "',
				`user` = '" . $user . "',
				`mod` = '" . $mod . "',
				`time` = '" . time() . "'");
				 $ball = mysql_query("UPDATE `users` SET `balans` = balans + 5  WHERE `id` = '".$user_id."'");
           
                echo '<div class="gmenu">Sheringiz  qo\'shildi<br />
                <a href="?">Orqaga</a></div>';
            } else {
				
                echo '  <div class="menu">
                            <form action="" method="POST"><b>Sheringiz matni:</b><br />
					
                               <textarea rows="matn" name="matn"></textarea><br>
										
                                <input type="submit" name="submit" value="Qo\'shish" />
                            </form>
                        </div>';
				
            }
 break;
case 'edit':
 $id = abs(intval($_GET['id']));
        if($rights >= 9) {
            if($id > 0) {
                $DjHuSo = mysql_fetch_assoc(mysql_query("SELECT `matn` FROM `maqola` WHERE `id` = '".$id."'"));

                if(isset($_POST['submit'])) {
                    $matn = trim(mysql_real_escape_string($_POST['matn']));
                    $query = mysql_query("UPDATE `maqola` SET `matn` = '".$matn."'  WHERE `id` = '".$id."'");
                    if($query) {
						echo'<div class="phdr">Sherni taxrirlash</div>';
                  
                        echo '<div class="gmenu">Sher taxrirlandi! <br /><a href="?">Orqaga</a></div> ';
                    } else {
                        echo functions::display_error('<a href="?">Orqaga</a>');
                    }
                } else {
					echo'<div class="phdr">Sher taxrirlash</div>';
                    echo '<div class="menu"><form action="" method="POST">
                    <b>Sher matni:</b> <br />
                     <textarea rows="matn" name="matn">'.$DjHuSo['matn'].' </textarea><br />
					
                    <input type="submit" name="submit" value="O\'zgartirish" />
                    </form></div>';
					echo'<div class="menu"><a href="'.$home.'">Boshiga o\'tish</a></div>';
                }
            } else {
                header('Location: ?');
            }
        } else{echo'<div class="rmenu">Manimcha siz boshqa yerga kirib qoldingiz!!! <a href="?">Orqaga</a> </div>';}

 break;
case 'del':
$id = abs(intval($_GET['id']));
        if ($rights >= 6) {
            if($id > 0) {
                $cat = mysql_fetch_assoc(mysql_query("SELECT `matn` FROM `maqola` WHERE `id` = '".$id."'"));
                if(isset($_GET['ha'])) {
                        mysql_query("DELETE FROM `maqola` WHERE `id` = '".$id."';");
                    mysql_query("DELETE FROM `maqola` WHERE `matn` = '".$id."';");
                    echo '<div class="gmenu">O\'chirildi<br />
                    <a href="?">Orqaga</a></div>';
                } else {
                    echo '<div class="menu">Siz ushbu sherni o\'chirishni istaysizmi?<br />';
                    echo '<a href="?djhuso=del&amp;id='.$id.'&amp;ha">Ha</a> | <a href="?">Yo\'q</a></div>';
                }
            } else{echo'<div class="rmenu">Manimcha siz boshqa yerga kirib qoldingiz!!! <a href="?">Orqaga</a> </div>';}

        } else {
 
        }
 break;
 
 case 'mod':
        echo '<div class="phdr"><a href="?">Sherlar makoni</a> | Tekshiruv</div>';
        if ($rights >= 6) {

                if (isset($_POST['modok'])) {

                        mysql_query("UPDATE `maqola` SET `mod` = 1 WHERE `id` = '".$_POST['idmod']."';");

                }
                    $total = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `maqola` WHERE `mod` = 0  "), 0);
        if ($total) {
            $query = mysql_query("SELECT * FROM `maqola` WHERE `mod` = 0  ORDER BY(`time`) DESC LIMIT " . $start . ", " . $kmess . "");
            $i = 0;

            while ($res = mysql_fetch_assoc($query)) {

             $time = functions::display_date($res['time']);
            echo'<div class="menu">'.$res['matn'].'</div>';
           if($rights >= 6) { echo ' <div class="rmenu"><a href="?djhuso=del&id='.$id.'&id='.$res['id'].'">O`chirish</a> | <a href="?djhuso=edit&id='.$res['id'].'">O`zgartirish</a> </div>'; }
           echo' <form name="modok" action="?djhuso=mod" method="POST" enctype="multipart/form-data">
              <input type="hidden" name="idmod" value="'.$res['id'].'"> <input name="modok" type="submit" value="Qabul qilish">
            </form> ';
           }

            echo '<div class="phdr">Barchasi: ' . $total . '</div>';
            if ($total > $kmess) {
                echo '<div class="topmenu">' . functions::display_pagination('?djhuso=mod&amp;', $start, $total, $kmess) . '</div>';
            }
        } else {
           echo'<div class="menu">Hozircha hech kim sher yozmadi! <br><a href="?">Orqaga</a></div>';
        }

        } else {
            echo functions::display_error($lng_an['nomoder']);
        }

        break;
}
///////////////////////////////////////