File manager - Edit - /home/autoph/public_html/connect/home/sample/herelist.php
Back
<!DOCTYPE html> <html> <body> <?php $servername = "localhost"; $username = "root"; $password = "aee1024"; $dbname = "db_vts"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT u_fname, u_lname FROM vts_users WHERE u_status = 1"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row echo "<div id='list1'>"; while($row = $result->fetch_assoc()) { echo "<li><h4 class=\"list-group-item-heading\">". $row["u_fname"]. " " . $row["u_lname"] . "</h4></li>"; } echo "</div>"; } else { echo (""); } $conn->close(); ?> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings