Yangi formatda davom etish uchun: https://uzfor.net/view.php?id=83474&page=2
PHPda masalalar yechish
Mavzu fayllari (28)
Xabarlar
Murakkablashamiz:
4-MASALA:Habar yozilgan vaqt($vaqt) malum.Siz habar necha minut oldin yozilganligini
chiqaruvchi funksiya tayyorlang. $vaqt = 1587392534; deb qaralsin!
4-MASALA:Habar yozilgan vaqt($vaqt) malum.Siz habar necha minut oldin yozilganligini
chiqaruvchi funksiya tayyorlang. $vaqt = 1587392534; deb qaralsin!
ƒυтвσĻιѕт, yaxshi lekin takomillashtiring verguldan keyingi sonlarni yo'qotish kerak:
32.816666666667 Oldin
32.816666666667 Oldin
$time=time();
$vaqt=1587392534;
$min = ($time - $vaqt)/60;
$int= intval($min);
echo ''.$int.' minut oldin';
$vaqt=1587392534;
$min = ($time - $vaqt)/60;
$int= intval($min);
echo ''.$int.' minut oldin';
Homiylar bo'lsa shu mavzuga homiy keragov...oy oxirida reytingi balandga yutuq bergani nima diysilar...
+ (1): ƒυтвσĻιѕт,
if(isset($_POST['kirit'])){
$matn = $_POST['matn'];
$all = strlen($matn);
echo''.$all.' belgi';
}
echo'<form name="form" action="" method="POST">
Matnni kiriting: <br>
<textarea name="matn">Matn</textarea><br>
<input name="kirit" type="submit" value="OK">
</form>';
$matn = $_POST['matn'];
$all = strlen($matn);
echo''.$all.' belgi';
}
echo'<form name="form" action="" method="POST">
Matnni kiriting: <br>
<textarea name="matn">Matn</textarea><br>
<input name="kirit" type="submit" value="OK">
</form>';
if(isset($_POST['yech'])){
$a = $_POST['son1'];
$b = $_POST['son2'];
$type = $_POST['type'];
if ($type == 'plus') {
$c = $a + $b;
}elseif ($type == 'minus') {
$c = $a - $b;
} elseif ($type == 'multi') {
$c = $a * $b;
}elseif ($type == 'drop'){
$c = $a / $b;
}
echo'<h2>Natija: '.$c.'</h2>';
}
echo'<form name="form" action="" method="POST">
Birinchi sonni kiriting:<br>
<input type="number" name="son1" required><br>
Amal turi:<br>
<select name="type">
<option value="plus"> Qo\'shish</option>
<option value="minus"> Ayirish</option>
<option value="multi"> Ko\'paytirish</option>
<option value="drop"> Bo\'lish</option>
</select><br>
Ikkinchi sonni kiriting:<br>
<input type="number" name="son2" required><br>
<input name="yech" type="submit" value="Yechimni ko\'rish">
</form>';
$a = $_POST['son1'];
$b = $_POST['son2'];
$type = $_POST['type'];
if ($type == 'plus') {
$c = $a + $b;
}elseif ($type == 'minus') {
$c = $a - $b;
} elseif ($type == 'multi') {
$c = $a * $b;
}elseif ($type == 'drop'){
$c = $a / $b;
}
echo'<h2>Natija: '.$c.'</h2>';
}
echo'<form name="form" action="" method="POST">
Birinchi sonni kiriting:<br>
<input type="number" name="son1" required><br>
Amal turi:<br>
<select name="type">
<option value="plus"> Qo\'shish</option>
<option value="minus"> Ayirish</option>
<option value="multi"> Ko\'paytirish</option>
<option value="drop"> Bo\'lish</option>
</select><br>
Ikkinchi sonni kiriting:<br>
<input type="number" name="son2" required><br>
<input name="yech" type="submit" value="Yechimni ko\'rish">
</form>';
2-MASALA:
$a = $_POST['son1']; $b = $_POST['son2']; $type = $_POST['type']; if ($type == 'plus') { $c = $a + $b; }elseif ($type == 'minus') { $c = $a - $b; } elseif ($type == 'multi') { $c = $a * $b; }elseif ($type == 'drop'){ $c = $a / $b; } echo'<h2>Natija: '.$c.'</h2>'; } echo'<form name="form" action="" method="POST"> Birinchi sonni kiriting:<br> <input type="number" name="son1" required><br> Amal turi:<br> <select name="type"> <option value="plus"> Qo\'shish</option> <option value="minus"> Ayirish</option> <option value="multi"> Ko\'paytirish</option> <option value="drop"> Bo\'lish</option> </select><br> Ikkinchi sonni kiriting:<br> <input type="number" name="son2" required><br> <input name="yech" type="submit" value="Yechimni ko\'rish"> </form>';
Biriktirilgan fayllar [1]:
— masala2.jpg (27.99 KB) (102 ↴)
— masala2.jpg (27.99 KB) (102 ↴)
5-MASALA:Bazamizda foydalanuvchilar Familiya Ism Sharifi saqlanadi.Biz uni shu holicha chiqarsak
ancha uzun bo'lib ketadi.Masalan Palonchiyev Pistonchi Po'kinovich ni Palonchiyev P.P deb chiqarishimiz kerak.
Shu vazifani bajaruvchi funcsiya tuzing!
ancha uzun bo'lib ketadi.Masalan Palonchiyev Pistonchi Po'kinovich ni Palonchiyev P.P deb chiqarishimiz kerak.
Shu vazifani bajaruvchi funcsiya tuzing!
$db = new mysqli('localhost','root','','dbname'); $db->query("SET NAMES utf8"); $ismFamiliya = $db->quer("SELECT `ism`,`familiya`, `otchestvo` from `jadval_nomi`")or die($db->error); while($r = $ismFamiliya->fetch_array()){ }
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 207 ta
So'ngi faollik vaqti: 21:54:12, 29 Sep 2022