
 Charles Wilkins IV - 2007-07-12 15:16:57
I'm writing some code that imports and Excel Spreadsheet into a MySQL table using your MySQL Tranact class.  The code (and class) work fine if they exist in their own page, but when I put them in a Function so I can call it from different points in the PHP page -- it fails.
I've inserted some echo statements to see where it fails, and it appears to fail because it loses the $id variable so when your function Execute() tries to run, it no longer has the $id.  Then the call to function db_ExecutesSQL fails on the 'if(empty($sql) OR !($id)) is called the class returns a failed value.
Any ideas on why or how to fix this so it can work?