|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-09 20:52 UTC] joey at cvs dot php dot net
[2000-05-22 03:45 UTC] joey at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 18:00:01 2025 UTC |
This is a sample for PHP4 b3. How come these errors occours? $j and $k should be equal but they are not. only $j works. should it really be this way? in the php3-way you didn't need to cast. -- CUT -- <? $sql = "select * from linkdb_intresse where id<10"; $res = sybase_query($sql,$conn); $i=0; while ($rs = sybase_fetch_array($res)) { if ($i++ == 0) { $j = (string) $rs[1]; $k = $rs[1]; } echo $j.", ".$k."<BR>"; // $j and $k should be equal but they are not. only $j works. should it really be this way? // in the php3-way you didn't need to cast. } /* Sample output: -- CUT -- Test1, Test1 Test1, Test1, Test1, Test1, Test2 Test1, Test1, Test1, Test1, Test3 -- CUT -- */ ?>