Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=43657
Postga havola
Сирожиддин [2882] [off]
HTML
CSS
PHP
XML
CSS
.w3-left { float: left!important; } .w3-bar { width: 100%; overflow: hidden; } *, *:before, *:after { box-sizing: inherit; }
PHP
<?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { } $sql = "SELECT id, firstname, lastname FROM MyGuests"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "<br>"; } } else { echo "0 results"; } $conn->close(); ?>
<script> var lastname, lastName; lastName = "Doe"; lastname = "Peterson"; document.getElementById("demo").innerHTML = lastName; </script>
SELECT id AS userid, fullname, userstatus FROM sometable WHERE userstatus = 1
XML
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>