A
Anonymous
Guest
I am having problems inserting data into a mssql database,
I have the connection working fine as I can read and output data ok, but when I am trying to insert data using a form I get the following error:
Fatal error: Call to undefined function mssql_query() in D:\Apache2\htdocs\processcall.php on line 13
if possible can someone help me with the code!! :?
I have the connection working fine as I can read and output data ok, but when I am trying to insert data using a form I get the following error:
Fatal error: Call to undefined function mssql_query() in D:\Apache2\htdocs\processcall.php on line 13
if possible can someone help me with the code!! :?
Code:
<?
require_once('./odbccon.php');
$name = $_POST['requestor'];
$tsk = $_POST['task'];
$dsc = $_POST['description'];
$insert = "Insert into tasks (REQUEST,TASK,DESCRIPT) values ('$name','$tsk','$dsc')";
mssql_query($insert) or die('Unable to log call');
?>