Johncms bo'yicha umumiy savollar (3101)
Bekmurod
#1301
JAMES_RODRIGUEZ, # JAMES_RODRIGUEZ (13.08.2018 / 07:47)
"< shunaqa belgilar bazaga &lt; shunga o'xshab yozilyapti bu nimadan?
Filtrdan bo'lishi mumkun.
html_entity_decode() shu funksiya orqali tog'irlab ko'ring.
http://www.php.su/html_entity_decode
0
ƒυтвσĻιѕт
#1302
Bekmurod,

shuni qanday qilib o'zgartirishim kerak
0
Kod · PHP7 qator
$wtext = "O`yinchi <a href='player.php?id=$atpj[id]'>$atpj[name]</a> jamoasiga sotildi <a href='club.php?id=$atpj[zarplat]'>$atpj2[name]</a>. Kelishuv summasi <b>$".number_format($atpj[cena],0,'.',' ')."</b> ni tashkil etdi.";

$etext = "Jamoa safini <a href='player.php?id=$atpj[id]'>$atpj[name]</a>,  <a href='club.php?id=$atpj[team_id]'>$atpj1[name]</a> jamoasidan o`tgan o`yinchi to`ldirdi. Kelishuv summasi <b>$".number_format($atpj[cena],0,'.',' ')."</b> ni tashkil etdi.";}

mysql_query("insert into fman_news set time=$realtime, pl_id=0, club_id=$atpj[team_id], text='$wtext'");

mysql_query("insert into fman_news set time=$realtime, pl_id=0, club_id=$atpj[team_id], text='$etext'");
tahrirlandi ·
Besthakker
#1303
Ushbu kodni pages/mainmenu.php ga urnatadimi yoki birorta fayl ochib ichiga tashaladimi



1.
$fayllar= mysql_result( mysql_query("SELECT COUNT(*) FROM `download` WHERE `type` = 'file' "),0);
2.
$yuklash= mysql_result( mysql_query("SELECT SUM(`ip`) FROM `download` WHERE `ip` > '0' "),0);
3.
echo'
4.
<div class="phdr" style="text-align: center"><b>Ma\'lumot</b></div>
5.
<div class="menu" style="text-align: center">
6.
Barchasi '.$fayllar.' ta fayl,
7.
Hammasi bo\'lib: '.$yuklash.' martta yuklandi!
8.
</div>
9.
';
0
uddaburon
#1304
#1298 ga qaravorila
0
Fanat_FCB
#1305
Boburuz, Biror fayl ochib saqlaysiz va mainmenu.php ga include 'fayl.php'; deb chiqarasiz
0
360
Viruzbek
#1306
Johnda video bosh sahifa chiqarish kere simba download ekan lekin qande chiqarish bilmayabman johnni endi organyabman
0
Akbarali
#1307
Viruzbek, Bosh sahifaning o'zida onlayn ko'rish kerakmi yoki havolasi bo'lsa yetadimi. John nechinchi versiya.
0
Bekmurod
#1308
JAMES_RODRIGUEZ, Kodni bazaga yozishda emas chiqarishda

qiling bo'ldi.
1
Kod · PHP3 qator
$text=html_entity_decode($text);

echo $text;
KooL
#1309
Johncms 6.2 library rasmga pechat bosadigan kod kerak. Iloji bo'lsa tayyor.php men bilgan kod ishlamadi
0
360
Viruzbek
#1310
Akbarali, # Akbarali (14.08.2018 / 07:22)
Viruzbek, Bosh sahifaning o'zida onlayn ko'rish kerakmi yoki havolasi bo'lsa yetadimi. John nechinchi versiya.
Havolasi ni chiqardim endi screenshoot chiqmadi john 6.2
0
ƒυтвσĻιѕт
#1311


Shuni qayerida xato bor?
0
Kod · PHP37 qator
<?php

define('_IN_JOHNCMS', 1);

$headmod = 'tournament23454';

$textl = 'Кубковые турниры';

require_once ("../incfiles/core.php");

require_once ("../incfiles/head.php");

$q = mysql_query("select * from fman_matches where id=$id");

$m = mysq_fetch_array($q);

// Новички

if ($id) {

mysql_query("insert into `r_cupgame` set `rez1`=$m[sc1], `rez2`='$m[sc2]', `pen1`='$m[pen1]', `pen2`='$m[pen2]', `id_report`='$m[id]' where `id`='$id'");



header('location: /man/match.php?id='.$id);

exit;

}





require_once ("../incfiles/end.php");

?>
gi8ri7
#1312
JAMES_RODRIGUEZ,
Tekshirib ko'ringchi
1
Kod · PHP37 qator
<?php

define('_IN_JOHNCMS', 1);

$headmod = 'tournament23454';

$textl = 'Кубковые турниры';

require_once ("../incfiles/core.php");

require_once ("../incfiles/head.php");

$q = mysql_query("select * from fman_matches where id=$id");

$m = mysq_fetch_array($q);

// Новички

if ($id) {

mysql_query("insert into `r_cupgame` set `rez1`=$m[sc1], `rez2`='$m[sc2]', `pen1`='$m[pen1]', `pen2`='$m[pen2]', `id_report`='$m[id]' where `id`='$id'");

 

header('location: /man/match.php?id='.$id.'');

exit;

}

 

 

require_once ("../incfiles/end.php");

?>
tahrirlandi ·
ƒυтвσĻιѕт
#1313
Master-X, ish bermadi
0
410
uDesign
#1314
JAMES_RODRIGUEZ, Xatoyingiz mysq_fetch_array() emas mysql_fetch_array() bo`lishi kerak
1
Kod · PHP37 qator
<?php

define('_IN_JOHNCMS', 1);

$headmod = 'tournament23454';

$textl = 'Кубковые турниры';

require_once ("../incfiles/core.php");

require_once ("../incfiles/head.php");

$q = mysql_query("select * from fman_matches where id = '$id'");

$m = mysql_fetch_array($q);

// Новички

if ($id) {

mysql_query("insert into `r_cupgame` set `rez1`='" . $m['sc1'] . "', `rez2`='" . $m['sc2'] . "', `pen1`='" . $m['pen1'] . "', `pen2`='" . $m['pen2'] . "', `id_report`='" . $m['id'] . "' where `id`='" . $id . "'");

 

header('location: /man/match.php?id=' . $id);

exit;

}

 

 

require_once ("../incfiles/end.php");

?>
ƒυтвσĻιѕт
#1315
uDesign, hozir redirect bo'lyapti ammo bazaga yozmayapti r_cupgamega
11 daqiqa 42 soniyadan keyin yozdi:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `id` = '12'' at line 6

shunaqa xato beryapti
0
74
inco-media
#1316
JAMES_RODRIGUEZ, redirect yozgan qatorizda bitta ' qolib ketgan menimcha
0
ƒυтвσĻιѕт
#1317
inco-media, to'g'rialb yozib bera olasizmi
0
74
inco-media
#1318
JAMES_RODRIGUEZ,
endi koringchi
1
Kod · PHP1 qator
header('location: /man/match.php?id="'.$id.'"');
tahrirlandi ·
ƒυтвσĻιѕт
#1319
inco-media, xato u yerda emas mysql kodda
1 daqiqa 40 soniyadan keyin yozdi:
Bazaga yozmayapti xabar
0
KooL
#1320
Downloaddagi 1ta papkadagi yuklamalarni tasodifiy chiqib turadigan qilish kerak. Misol tasodifiy hikoyalar chiqadiganday qilish kerak. Shunga yordam beringlar
0