I run this code:
<?php
require_once('config/all.php');
$dbh=conn_db("database"
;
$diff=4;
$event=3;
for ($i=1;$i<=$diff;$i++) {
$sql="insert into phase values ('',$event,'no name',5)";
print "$sql<br>\n";
$result=$dbh->getOne($sql);
}
?>
and get this output to screen (browser)
========================================================
insert into phase values ('',3,'no name',5)
Fatal error: Call to a member function on a non-object in /usr/local/lib/php/DB/common.php on line 831
========================================================
Am I doing something illegal by looping using "getOne" in this manner? All of my other DB.php queries are working fine!
ENV= PHP 4.3.4, , MySQL 3.23.57, Apache 1.3.29, Linux.
Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
<?php
require_once('config/all.php');
$dbh=conn_db("database"

$diff=4;
$event=3;
for ($i=1;$i<=$diff;$i++) {
$sql="insert into phase values ('',$event,'no name',5)";
print "$sql<br>\n";
$result=$dbh->getOne($sql);
}
?>
and get this output to screen (browser)
========================================================
insert into phase values ('',3,'no name',5)
Fatal error: Call to a member function on a non-object in /usr/local/lib/php/DB/common.php on line 831
========================================================
Am I doing something illegal by looping using "getOne" in this manner? All of my other DB.php queries are working fine!
ENV= PHP 4.3.4, , MySQL 3.23.57, Apache 1.3.29, Linux.
Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.