julstunt at yahoo.fr 14-Jan-2005 02:22 Warning ! with php 4.3.10, when you use mssql_query to insert or update data, the returned result is false but the query is really executed. So you don't know if the query was really executed or not :/ 不要判断,没用的
[17 Jan 10:57pm CET] [email protected] This bug has been fixed in CVS.Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/.
if($result = mssql_query($query))
echo mssql_affected_rows()." 数据添加成功。";
int mssql_rows_affected ( int conn_id)你的少了参数
14-Jan-2005 02:22
Warning ! with php 4.3.10, when you use mssql_query to insert or update data, the returned result is false but the query is really executed.
So you don't know if the query was really executed or not :/ 不要判断,没用的
This bug has been fixed in CVS.Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
if(mssql_query($query))
{
...
}//因为如果不是选择数据,就不会有数据集的,所以你的程序中$result始终为false,当然不执行了~