note 11871 added to function.mssql-query.php

From: Date: Sun, 11 Mar 2001 08:11:03 +0000
Subject: note 11871 added to function.mssql-query.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12261@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

« previous php.notes (#12261) next »