Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] Possible bug in mysql_fetch_array et al
Daniel Watrous wrote:

> In the above var_dump the [] actually appears as a small box and I
> cannot copy and paste it. The numerically indexed value (i.e.
> [0]=>string(4) "9542") is correct. The associatively indexed value (i.e.
> ["ORDER_ID"]=>string(4) "31[]3") is completely bogus. Has anyone else
> seen this behavior? Is there a fix for it? Any pointers would be
> appreciated...
>
> I have tried adding a value MYSQL_ASSOC to the mysql_fetch_array and I
> have tried using mysql_fetch_assoc.  Both return the same bogus value.

Maybe this is a character set problem? MySQL may be returning data in a
certain character set that PHP is interpreting differently or doesn't
understand (or your browser can't display it?).

Are you _sure_ nothing else is happening with the array or result set
that could be doing this? Can you reduce it down to a couple lines of
code and still reproduce this?

--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

Report this thread to moderator Post Follow-up to this message
Old Post
John Holmes
09-23-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:15 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.