Bug #15819 Updated: mysql_fetch_array doesn't return full contents of a varchar column

From: Date: Fri, 01 Mar 2002 18:29:17 +0000
Subject: Bug #15819 Updated: mysql_fetch_array doesn't return full contents of a varchar column
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1428@lists.php.net to get a copy of this message
ID: 15819 Updated by: derick@php.net Reported By: jh@lohi.eng.song.fi -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: linux 2.2.19 PHP Version: 4.1.2 New Comment: The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Previous Comments: ------------------------------------------------------------------------ [2002-03-01 13:26:17] jh@lohi.eng.song.fi i have a table called LOCATION that has a varchar(100) type field called contact. when i make a query select contact from LOCATION where (uri LIKE "%901%") using mysql-navigator, i correctly get the whole string contents of the contact field: <sip:0333983901@195.10.149.27;user=phone;transport=udp>;expires="Fri, 01 Mar 2002 18:37:13 GMT but when i make the same query from php, and then apply to the result mysql_fetch_array($result), the contact sting is missing the first part of the string: <sip:0333983901@195.10.149.27;user=phone;transport=udp> and only contains the remaining part: Array ( [0] => ;expires="Fri, 01 Mar 2002 18:37:13 GMT" [contact] => ;expires="Fri, 01 Mar 2002 18:37:13 GMT" ) why is the first part between <>s missing? is this a bug or should i do something special because of the <>s? my php is debian php4 4.1.2-1 and my php-mysql is debian php4-mysql4.1.1-2. -- juha ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15819&edit=1

« previous php.bugs (#1428) next »