@ 2015-11-30T14:52:13Z <?php
$con=mysqli_connect("localhost", "root", "Howismy1975", "testevent");
$companyname = isset($_POST["companyname"]) ? $_POST['companyname'] : 'companyname';
$contactname = isset($_POST["contactname"]) ? $_POST['contactname'] : 'contactname';
$conphonenumber = isset($_POST["conphonenumber"]) ? $_POST['conphonenumber'] : 'conphonenumber';
$conemail = isset($_POST["conemail"]) ? $_POST['conemail'] : 'conemail';
$conaddress = isset($_POST["conaddress"]) ? $_POST['conaddress'] : 'conaddress';
$conpostcode = isset($_POST["conpostcode"]) ? $_POST['conpostcode'] : 'conpostcode';
$statement = mysqli_prepare($con, "INSERT INTO client(companyname, contactname, conphonenumber, conemail, conaddress, conpostcode) VALUES (?, ?, ?, ?, ?, ?)");
mysqli_stmt_bind_param($statement, "ssssss", $companyname, $contactname, $conphonenumber, $conemail, $conaddress, $conpostcode);
mysqli_stmt_execute($statement);
mysqli_stmt_close($statement);
mysqli_close($con);
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/jmJlF:4
Stack trace:
#0 {main}
thrown in /in/jmJlF on line 4
Process exited with code 255 . Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Fatal error: Call to undefined function mysqli_connect() in /in/jmJlF on line 4
Process exited with code 255 . preferences:dark mode live preview
142.4 ms | 401 KiB | 194 Q