RE: [PHP] DB query returning wierd results

From: Date: Thu, 08 Aug 2002 17:51:13 +0000
Subject: RE: [PHP] DB query returning wierd results
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111689@lists.php.net to get a copy of this message
> Why are you doing this fetch_object()? So I can access the data by feild names. > If fetch_object operates > anything like mysql_fetch_array() (which I usually use), it advances > the result set pointer after the fetch. So here you fetch the first > row into $content and - at least in this code snippet - proceed to > ignore it. Yes, that was the problem, I use it elsewhere so it's gettign the attention it needs :) > > As programs often do, it's doing just what you asked...which MAY not > be what you want! > Oh, I never doubted for a second that the err was mine.... -B

« previous php.general (#111689) next »