Now I installed latest PHP 5.2.3 Uder IIS as ISAPI. And I use SQL server 2005.
I have a table(tbl) and in field(fd1) have some info like "ABC".
I do a select query like
$query = "select fd1 from tbl where fd1='ABC' ";
$rs = mssql_query($query);
$rel = mssql_fetch_row($rs);
Then $rel[0] give me "ABC " instead of "ABC". I don't know why it will give this additional empty space.
I use this code in PHP 4.2.3 under Apache server, it works fine against SQL server 2000.
Anyone knows the reason? Thanks,
I have a table(tbl) and in field(fd1) have some info like "ABC".
I do a select query like
$query = "select fd1 from tbl where fd1='ABC' ";
$rs = mssql_query($query);
$rel = mssql_fetch_row($rs);
Then $rel[0] give me "ABC " instead of "ABC". I don't know why it will give this additional empty space.
I use this code in PHP 4.2.3 under Apache server, it works fine against SQL server 2000.
Anyone knows the reason? Thanks,