File manager - Edit - /home/custbahd/public_html/tests/multiple tables/2.php
Back
<?php ob_start(); session_start(); $con=mysqli_connect("localhost","custbahd_customassistname","Rwatangabo1son","custbahd_crud"); if(mysqli_connect_errno()) { echo "Failed to connect to MySql:".mysqli_connect_error(); } ?> <?php if(isset($_POST['ok'])) { $ip=$_POST['ip']; $dates=$_POST['dates']; $gender=$_POST['gender']; $age=$_POST['age']; $tenure=$_POST['tenure']; //------------------------------------- $caring_past_1=$_POST['caring_past_1']; $caring_present_1=$_POST['caring_present_1']; $caring_future_1=$_POST['caring_future_1']; $caring_past_2=$_POST['caring_past_2']; $caring_present_2=$_POST['caring_present_2']; $caring_future_2=$_POST['caring_future_2']; //------------------------------------- $insert="INSERT INTO `caring1`(`ip`,`dates`,`gender`,`age`,`tenure`) VALUES('$ip','$dates','$gender','$age','$tenure')"; $query=mysqli_query($con,$insert); $ins="INSERT INTO `caring2`(`caring_past_1`,`caring_present_1`,`caring_future_1`,`caring_past_2`, `caring_present_2`,`caring_future_2`) VALUES('$caring_past_1','$caring_present_1','$caring_future_1','$caring_past_2','$caring_present_2','$caring_future_2')"; $quy=mysqli_query($con,$ins); }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 4.6 |
proxy
|
phpinfo
|
Settings