You are executing, $dbobj the database object. You should execute the statement
handle.
The code should be:
$query = "SELECT UserID,Name FROM test";
$sdb = $dbobj->prepare($query);
$sdb->execute();
Placed At :
"Clinton Hesse" <[EMAIL PROTECTED
try $sdb->execute()
Clinton Hesse wrote:
>It's funny, i can call method prepare on the database object but not
>execute, error on line 3.
>
>1. my $query = "SELECT UserID,Name FROM test";
>2. my $sdb = $dbobj->prepare($query);
>3. $dbobj->execute;
>
>where $dbobj is a reference to the database o