Well..Now i copied the DB to my local machine.modified the code as follows
$db_handler = DBI->connect("dbi:SQLite:dbname=$dbfile","","") or die "
+Unable to connect: $DBI::errstr\n";
$a_query = "SELECT * FROM $tablename where user_name=\"Psibond\"";
$res = $db_handler->prepare($a_query);
$res->execute();
$row = $res->fetch;
I am geeting the followin erros now:
DBD::SQLite::db prepare failed: no such module: calmfts2 at DB-Querying.pl line 22.
Can't call method "execute" on an undefined value at DB-Querying.pl line 24.
Is there anything wrong.I guess the sqlite module supports prepare n execute methods.
I also will be glad if u can tell me how to fetch out data Thanks, Psibond |