Mavzu: 0 dan sayt yaratish darslari.
85. MR_BaxtiyoR (93) [off] | TXT | 60| 21 Jul 2018, 12:52
Shu kodni tekshirib beriylar kamchilik bormi mysql kodlarda
86. BahhTeeUz (4797) [off] | TXT | 60| 21 Jul 2018, 12:53
MR_BaxtiyoR (21 Jul 2018, 12:52):
Shu kodni tekshirib beriylar kamchilik bormi mysql kodlarda
MR_BaxtiyoR, phpni yuklay olmaysiz!
87. MR_BaxtiyoR (93) [off] | TXT | 60| 21 Jul 2018, 12:55
Unda kodlarni yozaman
1.2333333333333 daqiqa sekund dan so'ng qo'shdi...

<?php





define
('_IN_JOHNCMS'true);

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



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

switch (
$act) {



    default:

    echo 
'<div class="phdr">Ibratli</div>';

    
$jami=mysql_result(mysql_query("SELECT COUNT(*) FROM `ibratli`"), 0);

if (
$jami) {

    
$ibratli1=mysql_query("SELECT `text` FROM `ibratli` ORDER BY `id` DESC LIMIT " $start ", " $kmess "");

       while (
$text=mysql_fetch_array($ibratli1)) {

           echo 
'<div style="padding:20px; font-size:18px; border:1px solid">'.$text['text'].'</div>';

        } 

               

    } else {

        echo 
'yoq';

    }

    echo 
$jami .'ta';

        break;

    case 
'qoshish':

        

        if (isset(
$_POST[text])){

                
mysql_query("INSERT INTO `ibratli` SET 

                    `text` = '"
.$_POST['text']."'");  

                    echo 
'qo`shildi'

                     }    

                     else {

        echo 
'<div class="phdr">Maqola yozish</div>

   <div class="menu">

                <form action="?act=qoshish" method="POST"> Yozish<br/>

                   <textarea name="text" rows="5" cols="2" placeholder="matnni kiriting"></textarea><br />

                    <input type="submit"  value="qo`shish">'
;

        }

        break;

        case 
'ornatish':

           echo 
'<div class="phdr">o`rnatish</div>';

$query mysql_query("CREATE TABLE `ibratli` (

  `id` int(11) NOT NULL AUTO_INCREMENT,

  `text` text NOT NULL,

  PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8;"
);

if(
$query) {

    echo 
'<div class="gmenu">o`rnatildi</div>';

} else {

    echo 
'<div class="rmenu">O`rnatilmadi</div>';

}

            break;

        }

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

            
?>



88. BahhTeeUz (4797) [off] | TXT | 60| 21 Jul 2018, 12:58
MR_BaxtiyoR (21 Jul 2018, 12:55):
Unda kodlarni yozaman
1.2333333333333 daqiqa sekund dan so'ng qo'shdi...
[php]<?php


define('_IN_JOHNCMS', true);
require_on• • •
MR_BaxtiyoR, johncms mavzusi mavjud-ku?!
create table nega kerak, hayronman?!
Insert into buyrug'idan foydalaning
89. MR_BaxtiyoR (93) [off] | TXT | 59| 21 Jul 2018, 13:02
Johncms gami yoki boshqasigami
Shunchaki tayyor baza ulangani uchun johncms da yozdim
Lekin kodlar tushaveradiku

Create orqali yangi jadval hosil qilinmaudimi?
1.0666666666667 daqiqa sekund dan so'ng qo'shdi...
Case-qoshishda muammoga duch kelgandim keyin to'g'irladim
90. BrauZer (141) [off] | TXT | 59| 21 Jul 2018, 13:06
scriptimda install.php yoq nima qilsam boladi
91. MR_BaxtiyoR (93) [off] | TXT | 60| 21 Jul 2018, 13:08
.sql fayl bormi?
Qanaqa script ozi biror cms da tuzilganmi?
Ma'lumotlar
Mavzu id raqami: 1847
Mavzuga oid xabarlar soni: 190 ta
So'ngi faollik vaqti: 5 Sep 2019, 14:26
Mavzuni ko'rishgan: 265 kishi
» txt shaklida yuklab olish
» Mavzudagi yangi xabarlardan xabardor bo'lishni rad etish
uzmasters.ru Onlayn 231 (0/231)
uzmasters.ru Forumga a'zo bo'lish
uzmasters.ru Forumdan qidirish
uzmasters.ru Bosh sahifa
Яндекс.Метрика UzMasterS.Ru