2 comments found

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
$sql = $db->sql_query("SELECT * FROM users"); $row = $db->sql_fetchrow($sql); print_r($row);

My database contain 3 rows. But it only show first record. Why? and how to add a variable to contain all record of fetch rows

Megatpl

Hi
Please use loops (while)

EX:

$sql = $db->sql_query("SELECT * FROM users");
while($row = $db->sql_fetchrow($sql))
{
    print_r($row);
}

  • Bought between 100 and 499 items
  • Has been a member for 5-6 years
  • United States

Let me get this straight. Rather than creating an abstract class and including sub-classes for each RDBMS, you opted to break them all into individual classes just to create more revenue?

Stay classy.


by
by
by
by
by
by