Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=51817
Postga havola
Sanjarbek [9] [off]
Fanat_FCB, # Fanat_FCB (23.02.2019 / 17:43)
Status bulimi kerak edi kimda bor yaxshiroq profile
sql fayli kerak bolsa shahsiga ot!
Status bulimi kerak edi kimda bor yaxshiroq profile
/////////STATUS boshi/////////// $yosh_statuslari=mysql_result(mysql_query("SELECT COUNT(*) FROM `yosh_status` WHERE `id_user`='$user[id]'"),0); $s=mysql_query("SELECT * FROM `yosh_status` WHERE `id_user` = '$user[id]' ORDER BY `time` DESC LIMIT 1"); $sts_qiymati=mysql_result(mysql_query("SELECT COUNT(*) FROM `yosh_status` where `id_user`=$user[id]"),0); if ($sts_qiymati==0) { if ($user['id'] == $user_id) { echo '<div class="ystatus_t"><form action="'.$home.'/status/?yosh=status_saqlash" method="post"> <input type="name" name="name" maxlength="150" size="18" class="anput"/><input value=" + " type="submit"/></form> </div>'; }} if ($user['id']==$user_id) { echo '<div class="ystatus_t"><form action="'.$home.'/status/?yosh=status_saqlash" method="post"> <input type="name" name="name" maxlength="150" size="18" class="anput"/><input value=" + " type="submit"/></form> </div>'; echo '<div class="ramkaforum"><i>'.functions::checkout($sts[name]).'</i><font style="font-size:11px; color:gray;">   </br>'.functions::display_date($sts['time']).'</font></div>'; echo'<div><a href="../status/statuslar.php?id='.$user['id'].'">Hemme statuslary</a> ('.$yosh_statuslari.')</div>'; } else { echo '<div class="ramkaforum"><i>'.functions::checkout($sts[name]).'</i><font style="font-size:11px; color:gray;">   </br>'.functions::display_date($sts['time']).'</font></div>'; echo'<div><a href="../status/statuslar.php?id='.$user['id'].'">Hemme statuslary</a> ('.$yosh_statuslari.')</div>'; } $sts_izoh=mysql_num_rows(mysql_query("select * from yosh_status_kom where type='status' and id_kogo='$sts[id]'")); echo '<div class="kmenu"> <a href="/status/?yosh=izoh&id_kim='.$user['id'].'&id_sts='.$sts[id].'"> <img src="/images/yosh/fikr.png" /> '.$sts_izoh.'</a>'; $ajoyib_sts=mysql_query("SELECT * FROM `yosh_status_klass` WHERE `type`='status' AND `zakogo`='$sts[id]' AND `kto`='$user_id' LIMIT 1"); if($user[id] != $user_id) { echo ' • <a href="/status/?yosh=view&id_kim='.$user['id'].'&id_sts='.$sts[id].'"> <img src="/images/yosh/klass.png" />'.$zor_sts['ajoyib'].' </a> • <a href="/status/?yosh=klass&id_kim='.$user['id'].'&id_sts='.$sts[id].'">LIKE!</a>'; }else{ $minus='1'; $ok_status=$zor_sts[ajoyib]-$minus; echo ' • <a href="/status/?yosh=view&id_kim='.$user['id'].'&id_sts='.$sts[id].'"> <img src="/images/yosh/klass.png" />Siz we '.$ok_status.'</a>'; } }else{ echo ' • <a href="/status/?yosh=view&id_kim='.$user['id'].'&id_sts='.$sts[id].'"> <img src="/images/yosh/klass.png" />'.$zor_sts['ajoyib'].' sany!</a>'; } echo '</div>'; } /////////STATUS oxiri///////////
sql fayli kerak bolsa shahsiga ot!