Need help pulling data from DB (Perl DBI)
I am pretty sure DBI is connecting but not pulling anything from DB could anyone take a look at this?
Code:
|
Try this
Code:
sub EVENT_SAY { |
Thanks, I actually got it working yesterday thanks to TurmoilToad - he spotted missing ( ; ) in the query line it needs to be:
$query = "SELECT key, value FROM data_buckets;"; But I will utilize this part from you =) while(@row = $query_handle->fetchrow_array()) { quest::say(" babling $row[0],$row[1]"); |
Well the original post is also missing a "," between data_buckets.key data_buckets.value
Also you don't need to put ";" at the end in DBI :P |
All times are GMT -4. The time now is 10:09 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.