3v4l.org

run code in 300+ PHP versions simultaneously
<? //the example of inserting data with variable from HTML form //input.php mmysql_connect("userdb1","1039862_QmG","yJksQAtjWml2CF");//database connection mysql_select_db("1039862_QmG"); $name_animal=$_POST['name_animal']; $DOB=$_POST['DOB']; $species=$_POST['species']; $type=$_POST['type']; $fk_Id_client=$_POST['fk_Id_client']; $fk_id_deskstaff=$_POST['fk_id_deskstaff']; //inserting data order $order = "INSERT INTO Animal (name_animal,DOB,species, type,fk_Id_client,fk_id_deskstaff) VALUES ('$name_animal','$DOB','$species','$type','$fk_Id_client','$fk_id_deskstaff')"; //declare in the order variable $result = mysql_query($order); //order executes if($result){ echo("<br>Input data is succeed"); } else{ echo("<br>Input data is fail"); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<? //the example of inserting data with variable from HTML form //input.php mmysql_connect("userdb1","1039862_QmG","yJksQAtjWml2CF");//database connection mysql_select_db("1039862_QmG"); $name_animal=$_POST['name_animal']; $DOB=$_POST['DOB']; $species=$_POST['species']; $type=$_POST['type']; $fk_Id_client=$_POST['fk_Id_client']; $fk_id_deskstaff=$_POST['fk_id_deskstaff']; //inserting data order $order = "INSERT INTO Animal (name_animal,DOB,species, type,fk_Id_client,fk_id_deskstaff) VALUES ('$name_animal','$DOB','$species','$type','$fk_Id_client','$fk_id_deskstaff')"; //declare in the order variable $result = mysql_query($order); //order executes if($result){ echo("<br>Input data is succeed"); } else{ echo("<br>Input data is fail"); } ?>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.38 ms | 403 KiB | 8 Q