PHP Classes

Little help

Recommend this page to a friend!

      static_DBConnect  >  All threads  >  Little help  >  (Un) Subscribe thread alerts  
Subject:Little help
Summary:fetch rows
Messages:1
Author:Bruno Vucica
Date:2010-11-08 12:46:54
 

  1. Little help   Reply   Report abuse  
Picture of Bruno Vucica Bruno Vucica - 2010-11-08 12:46:54
Hello,

I'm trying to fetch rows but no luck and no results. Below is my attempt:

include 'class.static.dbconnect.php';

DBConnect::Prepare("127.0.0.1","myUser","myPass","mySchema");

$mysql_result = DBConnect::Select("SELECT * FROM myTable");

while($row = DBConnect::getRow($mysql_result)){
echo $row['id'];
}

Thanks