why does this do this?
Posted: Sat May 31, 2003 1:29 am
Why does this method(the function is inside a class) print each column in the row twice?
Code: Select all
function PrintRows()
{
for ($this->counter = 0; $this->counter < $this->totalRows; $this->counter++)
{
@mysql_data_seek($this->result, $this->counter) or error("Unable to seek out row $this->counter.");
$this->data = mysql_fetch_array($this->result) or error("Unable to fetch array.");
print '<tr>';
foreach ($this->data as $this->col)
{
print "<td>$this->col</td>";
}
print '</tr>';
}
}