File manager - Edit - /home/custbahd/public_html/tests/multiple tables/1.php
Back
<?php $GLOBALS['server']="localhost"; $GLOBALS['username']="custbahd_customassistname"; $GLOBALS['password']="Rwatangabo1son"; $GLOBALS['database']="custbahd_crud"; $GLOBALS['conn']= mysqli_connect($server,$username,$password,$database); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //echo "Connected successfully"; $GLOBALS['db'] = mysqli_connect($server,$username,$password,$database); $sql="INSERT INTO anima1 (id,name) VALUES('','vidya');"; $sql1="INSERT INTO anima2 (id,fname) VALUES('','viddi');"; mysqli_query($conn,$sql1); if (mysqli_multi_query($GLOBALS['db'], $sql)) { echo "New records created successfully"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } mysqli_close($conn); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 1.8 |
proxy
|
phpinfo
|
Settings