note 83619 added to mysqli-result.fetch-object
| From: | kristianoye at gmail dot com | Date: | Wed, 04 Jun 2008 20:31:48 +0000 |
| Subject: | note 83619 added to mysqli-result.fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140126@lists.php.net to get a copy of this message | ||
I am having a weird issue with fetch_object():
Example:
$sql = "select a.*, n.* from ControlAccess as a left join ControlAccessNote as n on n.EntryID =
a.EntryID";
if($result = $dbc->query($sql))
{
while($row = $result->fetch_object())
{
print $row->EntryID . ", " . $row->AccessEntry . "<br/>";
}
}
Results in:
<!-- EntryID = 1, ^mm-retail-out-[\d\-]+.xxxxx.com$ -->
<!-- EntryID = , hollister.xxxxx.org -->
<!-- EntryID = , kriton@xxxxx.org -->
Why is EntryID not getting populated on the second and third rows (the table's PK)?
----
Server IP: 69.147.83.197
Probable Submitter: 67.94.101.190
----
Manual Page -- http://www.php.net/manual/en/mysqli-result.fetch-object.php
Edit -- https://master.php.net/note/edit/83619
Del: integrated -- https://master.php.net/note/delete/83619/integrated
Del: useless -- https://master.php.net/note/delete/83619/useless
Del: bad code -- https://master.php.net/note/delete/83619/bad+code
Del: spam -- https://master.php.net/note/delete/83619/spam
Del: non-english -- https://master.php.net/note/delete/83619/non-english
Del: in docs -- https://master.php.net/note/delete/83619/in+docs
Del: other reasons-- https://master.php.net/note/delete/83619
Reject -- https://master.php.net/note/reject/83619
Search -- https://master.php.net/manage/user-notes.php