Yangi formatda davom etish uchun: https://uzfor.net/view.php?id=90&page=26
JohnCMS da bosh sahifaga chiqarish
Mavzu fayllari (15)
Xabarlar
Besthakker, # Besthakker (20.06.2020 / 17:19)
TimX, <?php
echo '<div class="phdr"><b>Yangi maqolalar</b></div>';
$kmess = '7';
$cat_id = 48; //bu yerga kategorya idsini yozasiz
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `libraMan boshqacha chiqardim. Qatta `premod`=1 bo'lsa, shuni o'rniga `cat_id`=NumberID qilib chiqdim. Ishladi lekin
TimX, <?php
echo '<div class="phdr"><b>Yangi maqolalar</b></div>';
$kmess = '7';
$cat_id = 48; //bu yerga kategorya idsini yozasiz
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `libraMan boshqacha chiqardim. Qatta `premod`=1 bo'lsa, shuni o'rniga `cat_id`=NumberID qilib chiqdim. Ishladi lekin
Johncmsda bosh sahifada if bilan ishlash qanday buladi masalan shu forumda bilidirish nomani bossa orqasidagi div class ozgaradi shuni qanday qilingan
if (??) {
<div class="test"><img src="m.png"></div>
}
else{<div class="test2">.....</div>
}
shunaqa ??ni ichiga nima yozish kerak
if (??) {
<div class="test"><img src="m.png"></div>
}
else{<div class="test2">.....</div>
}
shunaqa ??ni ichiga nima yozish kerak
ʬʬΞ NOKIA Ξʬʬ, # ʬʬΞ NOKIA Ξʬʬ (23.06.2020 / 21:02)
Johncmsda bosh sahifada if bilan ishlash qanday buladi masalan shu forumda bilidirish nomani bossa orqasidagi div class ozgaradi shuni qanday qilingan
if (??) {
<div class="test"><img src="m.png"></
Johncmsda bosh sahifada if bilan ishlash qanday buladi masalan shu forumda bilidirish nomani bossa orqasidagi div class ozgaradi shuni qanday qilingan
if (??) {
<div class="test"><img src="m.png"></
if ($mysqlkodnomibuyerda) { echo '<div class="test"><img src="m.png"></div>'; } else { echo '<div class="test2">.....</div>'; }
+ (1): code_one,
Улугбек, # Улугбек (23.06.2020 / 21:53)
ʬʬΞ NOKIA Ξʬʬ, if ($mysqlkodnomibuyerda) {
echo '<div class="test"><img src="m.png"></div>';
}
else {
echo '<div class="test2">.....</div>';
}Kod nomi digan joyiga nima yoziladi html kodmi yoki istalgan nom ?
ʬʬΞ NOKIA Ξʬʬ, if ($mysqlkodnomibuyerda) {
echo '<div class="test"><img src="m.png"></div>';
}
else {
echo '<div class="test2">.....</div>';
}Kod nomi digan joyiga nima yoziladi html kodmi yoki istalgan nom ?
ʬʬΞ NOKIA Ξʬʬ, # ʬʬΞ NOKIA Ξʬʬ (23.06.2020 / 22:01)
Улугбек, Kod nomi digan joyiga nima yoziladi html kodmi yoki istalgan nom ?$nom=...kodlar balo battarlar);
if ($nom) {
shunaqa
$nom=....davomi
bu mysql kod bu kod orqali if beriladi bolmasa yoq
$nom bu mysql kod nomi
Улугбек, Kod nomi digan joyiga nima yoziladi html kodmi yoki istalgan nom ?$nom=...kodlar balo battarlar);
if ($nom) {
shunaqa
$nom=....davomi
bu mysql kod bu kod orqali if beriladi bolmasa yoq
$nom bu mysql kod nomi
+ (1): code_one,
Улугбек, # Улугбек (23.06.2020 / 22:31)
ʬʬΞ NOKIA Ξʬʬ, $nom=...kodlar balo battarlar);
if ($nom) {
shunaqa
$nom=....davomi
bu mysql kod bu kod orqali if beriladi bolmasa yoq
$nom bu mysql kod nomiPrichom betda mysql?
ʬʬΞ NOKIA Ξʬʬ, $nom=...kodlar balo battarlar);
if ($nom) {
shunaqa
$nom=....davomi
bu mysql kod bu kod orqali if beriladi bolmasa yoq
$nom bu mysql kod nomiPrichom betda mysql?
+ (1): sobirjonovv,
ʬʬΞ NOKIA Ξʬʬ, # ʬʬΞ NOKIA Ξʬʬ (23.06.2020 / 21:02)
Johncmsda bosh sahifada if bilan ishlash qanday buladi masalan shu forumda bilidirish nomani bossa orqasidagi div class ozgaradi shuni qanday qilingan
if (??) {
<div class="test"><img src="m.png"></if($headmod == "mainpage"){
bosh sahifada
}else{
bosh sahifada emas
}
59 soniyadan keyin yozdi:
Headmodga qarab mosluras
Johncmsda bosh sahifada if bilan ishlash qanday buladi masalan shu forumda bilidirish nomani bossa orqasidagi div class ozgaradi shuni qanday qilingan
if (??) {
<div class="test"><img src="m.png"></if($headmod == "mainpage"){
bosh sahifada
}else{
bosh sahifada emas
}
59 soniyadan keyin yozdi:
Headmodga qarab mosluras
Fanat_FCB,
$req = mysql_query("SELECT * FROM `cms_news` WHERE `time` > '".(TIME()-86400*7)."' ORDER BY `reads` DESC LIMIT 10;");
+ (2): Fanat_FCB, Besthakker,
CleverBoy, # CleverBoy (22.08.2020 / 19:48)
Fanat_FCB, $req = mysql_query("SELECT * FROM `cms_news` WHERE `time` > '".(time()-86400*7)."' ORDER BY `reads` DESC LIMIT 10;");Bu manimcha haftalik ni chiqaradi, shuni 2yoki3 kunlik qilib chiqarish kodi qanaqa endi
Fanat_FCB, $req = mysql_query("SELECT * FROM `cms_news` WHERE `time` > '".(time()-86400*7)."' ORDER BY `reads` DESC LIMIT 10;");Bu manimcha haftalik ni chiqaradi, shuni 2yoki3 kunlik qilib chiqarish kodi qanaqa endi
Мансуров Улугбек, Tepani qarang haftaning eng ko'p o'qilgani kerak degan "'.(time()-86400*1 yoki 2 yoki 3).'" Bo'ldi
<?php echo '<div class="blue">'; echo '<div class="phdr"><center><b>Новые</b></center></div>'; $kmess = '5'; $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `library_texts` WHERE `time` AND `cat_id`= 1"), 0); $start = $page == 1 ? 0 : ($page - 1) * $kmess; $sql = mysql_query("SELECT `id`, `name`, `time`, `uploader`, `uploader_id`, `count_views`, `comments`, `count_comments`, `cat_id`, `announce` FROM `library_texts` WHERE `cat_id`=1 ORDER BY `time` DESC LIMIT " . $start . "," . $kmess); $nav = ($total > $kmess) ? '<div class="menu"><center>' . functions::display_pagination('?act=new&', $start, $total, $kmess) . '</center></div>' : ''; if ($total) { $i = 0; $comm = mysql_result( mysql_query("select count(*) from `cms_library_comments` where `refid` = '".$lib['id']."'"),0); echo '<div class="menu"><a href="' . $set['homeurl'] . '/library/index.php?id=' . $lib['id'] . '"><b>' . $lib['name'] . '</a></b><br>'; $post1 = functions::checkout($lib['announce'], 1, 1); $post = functions::smileys($post1, 1); echo $post; echo '<br/>'; $catalog = mysql_fetch_assoc(mysql_query("SELECT `id`, `name` FROM `library_cats` WHERE `id` = " . $lib['cat_id'] . " LIMIT 1")); echo '['. functions::display_date($lib['time']) . ']'; echo '[<a href="/library/index.php?act=comments&id=' . $lib['id'] . '">Обсуждения (' . $lib['count_comments'] . ')</a>]'; echo '<span style="float:right;"><b>[' . $lib['count_views'] . ']</b></span></div>'; } } echo '<div class="menu"><a href="' . $set['homeurl'] . '/library/index.php?do=dir&id=1"><b>Показать все >></a></b></div></div>'; ?>
bu kod librarydagi maqolalarni faqat bitta cat bo'yicha chiqaryapti. Huddi shu kodni tahrirlab beringlar, librarydagi umumiy yangi maqolalar chiqadigan qilib.
VORZAKON,
Shunaqa
<?php echo '<div class="blue">'; echo '<div class="phdr"><center><b>Новые</b></center></div>'; $kmess = '5'; $start = $page == 1 ? 0 : ($page - 1) * $kmess; $sql = mysql_query("SELECT `id`, `name`, `time`, `uploader`, `uploader_id`, `count_views`, `comments`, `count_comments`, `cat_id`, `announce` FROM `library_texts` ORDER BY `time` DESC LIMIT " . $start . "," . $kmess); $nav = ($total > $kmess) ? '<div class="menu"><center>' . functions::display_pagination('?act=new&', $start, $total, $kmess) . '</center></div>' : ''; if ($total) { $i = 0; $comm = mysql_result( mysql_query("select count(*) from `cms_library_comments` where `refid` = '".$lib['id']."'"),0); echo '<div class="menu"><a href="' . $set['homeurl'] . '/library/index.php?id=' . $lib['id'] . '"><b>' . $lib['name'] . '</a></b><br>'; $post1 = functions::checkout($lib['announce'], 1, 1); $post = functions::smileys($post1, 1); echo $post; echo '<br/>'; $catalog = mysql_fetch_assoc(mysql_query("SELECT `id`, `name` FROM `library_cats` WHERE `id` = " . $lib['cat_id'] . " LIMIT 1")); echo '['. functions::display_date($lib['time']) . ']'; echo '[<a href="/library/index.php?act=comments&id=' . $lib['id'] . '">Обсуждения (' . $lib['count_comments'] . ')</a>]'; echo '<span style="float:right;"><b>[' . $lib['count_views'] . ']</b></span></div>'; } } echo '<div class="menu"><a href="' . $set['homeurl'] . '/library/index.php?do=dir&id=1"><b>Показать все >></a></b></div></div>'; ?>
Shunaqa
+ (1): sobirjonovv,
Ulty, # Ulty (24.08.2020 / 17:41)
VORZAKON, <?php
echo '<div class="blue">';
echo '<div class="phdr"><center><b>Новые</b></center></div>';
$kmess = '5';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `library_texts`Kod to'g'ri lekin xatosi bor
VORZAKON, <?php
echo '<div class="blue">';
echo '<div class="phdr"><center><b>Новые</b></center></div>';
$kmess = '5';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `library_texts`Kod to'g'ri lekin xatosi bor
+ (1): Besthakker,
Biriktirilgan fayllar [1]:
— screenshot_2020-08-24-18-46-57-1.png (37.77 KB) (107 ↴)
— screenshot_2020-08-24-18-46-57-1.png (37.77 KB) (107 ↴)
TimX, # TimX (24.08.2020 / 18:46)
Ulty, Kod to'g'ri lekin xatosi borTushunmasam ♂️
Ulty, Kod to'g'ri lekin xatosi borTushunmasam ♂️
coder, # coder (25.08.2020 / 10:44)
library dagi tasodifiy 10 ta bo'limni qanday chiqarsa bo'ladi
test qilib kormadim, lekin ishlashi kerak...
library dagi tasodifiy 10 ta bo'limni qanday chiqarsa bo'ladi
echo '<div class="phdr">Tasodifi 10 ta kutubxona bolimlari</div>'; echo '<div class="menu"> <a href="'.$home.'/library/?do=dir&id='.$res['id'].'"> '.$res['name'].' </a> </div>'; }
test qilib kormadim, lekin ishlashi kerak...
+ (1): code_one,
ZET-PRO2003, # ZET-PRO2003 (25.08.2020 / 12:09)
coder,
echo '<div class="phdr">Tasodifi 10 ta kutubxona bolimlari</div>';
$req = mysql_query("select * from `library_cats` ORDER BY RAND() LIMIT 10");
while ($res = mysql_fetch_array($req)) {
echLIMIT 10 buni 5 qilsam 5 tasi chiqadimi?
coder,
echo '<div class="phdr">Tasodifi 10 ta kutubxona bolimlari</div>';
$req = mysql_query("select * from `library_cats` ORDER BY RAND() LIMIT 10");
while ($res = mysql_fetch_array($req)) {
echLIMIT 10 buni 5 qilsam 5 tasi chiqadimi?
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 536 ta
So'ngi faollik vaqti: 02:12:02, 25 Feb 2021