Thank you, the code is what I wanted, but I have figured out my issue, I get the following error:
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /ho +me/rdscopy.pl line 204. DBD::mysql::st fetchrow_array failed: fetch() without execute() at /ho +me/rdscopy.pl line 204.
when there is no data in the table facebook_321_ext table in production, so the query reutrns nothing and then the insert statement below " while (my @insert_ext = $feed_table_ext_results->fetchrow_array())" which is line 204 gives that error, but it works when data is there upon other test.
Is there a way I can error check before executing?while (my @insert_ext = $feed_table_ext_results>fetchrow_array()) { $ext_insert->execute(@insert_ext) ; }
In reply to Re^2: Perl DBI execute statement
by cbtshare
in thread Perl DBI execute statement
by cbtshare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |