|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-02 02:18 UTC] derick@php.net
[2004-04-02 03:05 UTC] mhabr at sszn dot cz
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 17:00:02 2025 UTC |
Description: ------------ I connect to ms sql server.When I use mssql_fetch_array and then i wonna get collumns values , every value has an additional space at its end. Thanks a lot Reproduce code: --------------- $query = mssql_query("SELECT id,email,password,name FROM users WHERE login='$login'"); $row = mssql_fetch_array($query); if (mssql_num_rows($query) != 0) { 1) echo '*'.md5($passwd).'*'; 2) echo '*'.$row["password"].'*'; first echo 1) shows something like *4sdfdsf6ddt* but echo 2) shows *4sdfdsf6ddt * ___ this space isnt needed. Expected result: ---------------- no space at the end of $row["column_name"] Actual result: -------------- additional space at the end of $row[].