It appears as though you are trying to call Sql() on $connection. $connection is not defined anywhere in your code. Perhaps you meant $dbh or $dbh2? Furthermore, is Sql() a valid call? Perhaps you meant do() instead of Sql(). Perhaps I am mistaken though. Sql() is supported if you are using EZDBI. BTW, you may want to take a look at that module. It makes things quite simple :)
Update: As a side note, I do believe you left your mysql password in the script. You may want to dub that out :)
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.
In reply to Re: Problem with Code
by Coruscate
in thread Problem with Code
by SamueD2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |