Forum Moderators: coopster
$connector->fetchArray() seems to be moving the marker in the records ahead by one. From what I can see here, there is no reason by be calling this function. If you want to use the object's method instead of mysql_fetch_object then you need to replace it with the former. It should look like this, then:
$result = $connector->query("SELECT * FROM articles1 ORDER BY section ASC");
if(mysql_num_rows($result) > 0)
{
while($row = $connector->fetchArray($result))
{
Try that...
These are the records fields but there is nothing in them, just 4 sections of empty records.
<?php echo $row->sectionname; ?>
<?php echo $row->pid; ?>
<?php echo $row->id; ?>
<?php echo $row->title; ?>
<?php echo $row->menutitle; ?>
<?php echo $row->tagline; ?>
Hope this makes sense.
This is how it looks on original code
Section name Main
SectionID 1
Article ID 1
Title Home Page
Title Home
Tagline This is the home Page
Added
Last Updated
Edit Content
This is how it looks with your code...
Section name
SectionID
Article ID
Title
Title
Tagline
Added
Last Updated
Edit Content
Everything is empty ...
$result = $connector->query("SELECT * FROM articles1 ORDER BY section ASC");
if (mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_object($result))
{
Try that...