PHP 4/5 make a difference to this code?
Posted: Wed Jul 12, 2006 4:25 am
Is there a difference in how this method will run in PHP4 as opposed to PHP5? (Ignoring the fact that the "static" keyword is used, that is) Any comments on this code very welcome...
Also, what is the function of this piece of code? I can't quite get my head around the "double []":
Cheers 
Code: Select all
static function connect($dbName)
{
if ($this->db == null)
{
$this->db = new $this->mysql_connect($dbname);
}
}Code: Select all
for ($x = 0; $x < Database::get_total_rows(); $x++)
{
foreach ($columns as $colname)
{
$data[$x][$colname] == Database::get($colname);
}
$oStats->NextRecord();
}