note 83619 rejected from mysqli-result.fetch-object by yannick
| From: | yannick@php.net | Date: | Wed, 04 Jun 2008 20:33:40 +0000 |
| Subject: | note 83619 rejected from mysqli-result.fetch-object by yannick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140127@lists.php.net to get a copy of this message | ||
Note Submitter: kristianoye at gmail dot com
----
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)?