";
// Only show ezSQL credits once..
if ( ! $this->debug_called )
{
echo "ezSQL (v".EZSQL_VERSION.") Debug..\n";
}
echo "Query -- ";
echo "[$this->last_query]
";
echo "Query Result..";
echo "
";
if ( $this->col_info )
{
// =====================================================
// Results top rows
echo "";
echo "(row) | ";
for ( $i=0; $i < count($this->col_info); $i++ )
{
echo "{$this->col_info[$i]->type} {$this->col_info[$i]->max_length} {$this->col_info[$i]->name} | ";
}
echo "
";
// ======================================================
// print main results
if ( $this->last_result )
{
$i=0;
foreach ( $this->get_results(null,ARRAY_N) as $one_row )
{
$i++;
echo "$i | ";
foreach ( $one_row as $item )
{
echo "$item | ";
}
echo "
";
}
} // if last result
else
{
echo "No Results |
";
}
echo "
";
} // if col_info
else
{
echo "No Results";
}
echo "