3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(1); $conn = mssql_connect("WIN-7MF117JOIU2","sa2","Baby13!@") or die ( 'Can not connect to server' ); mssql_select_db("MobBabySentryPro", $conn) or die ( 'Can not select database' ); $data = base64_decode($_POST['data']); parse_str($data, $data); $ivfnbr = $data['ivfnbr']; $clinic =$data['clinic']; $dob =$data['dob']; $proc = mssql_init('MobProcLogin', $conn); mssql_bind($proc,'@Ivfnbr',$ivfnbr,SQLVARCHAR); mssql_bind($proc,'@clinic',$clinic,SQLVARCHAR); mssql_bind($proc,'@DOB',$dob,SQLVARCHAR); mssql_bind($proc,'@status',$status,SQLINT4,true); $proc_result = mssql_execute($proc); if ($status == 1) print '{"status": 1,"data":"Logged in successfully"}'; else print '{"status": -1,"data":"Incorrect credrentials"}'; mssql_free_statement($proc); mssql_close(); ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mssql_connect() in /in/Jsk2T:4 Stack trace: #0 {main} thrown in /in/Jsk2T on line 4
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function mssql_connect() in /in/Jsk2T on line 4
Process exited with code 255.