note 11872 added to function.mssql-query.php
| From: | envis at netvigator dot com | Date: | Sun, 11 Mar 2001 08:11:18 +0000 |
| Subject: | note 11872 added to function.mssql-query.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12262@lists.php.net to get a copy of this message | ||
$sql = "INSERT INTO Tradetemp (holder_name,
card_type)VALUES('$holder_name',$card_type')";
$connection = mssql_connect("ELVIS_FAI","ElvisLF","54321")or
die("Connect Error!");
$db = mssql_select_db("BookShop", $connection) or die("Database Error!!");
$sql_result = mssql_query($sql, $connection) or die("Query Error!!");
< When I run this program, it will display " Query Error!!", but the data can full
transfer to SQL Server by SQL statement. But when check the value in sql_result is none. Can help me
solve this question. >
http://www.php.net/manual/en/function.mssql-query.php