hi everyone,
i tried using the code below to connect to my database (MSSQL) but it gave me the error benith. actually am new to php and i dont want to use mysql because am used to MSSQL
thanks
code
error
Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\gig \crash.php on line 10
i tried using the code below to connect to my database (MSSQL) but it gave me the error benith. actually am new to php and i dont want to use mysql because am used to MSSQL
thanks
code
Code:
<?php
$con = mssql_connect('OLUKAYODE\SQLEXPRESS', 'sa', 'admin');
mssql_select_db('image', $com);
$sql = "select * from main";
$get = mssql_query($sql, $com);
$data = mssql_fetch_array($get);
echo $data["title"];
echo $data["file_name"];
?>
Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\gig \crash.php on line 10
Comment