[eluser]jedd[/eluser]
[quote author="jpcody" date="1253063799"]
I'm still getting "Undefined variable" errors on the $tweet value in the foreach line (which also triggers an invalid foreach) as well as an undefined $messages variable on the insertion line.
[/quote]
Instead of what you have:
Code:
function insert_tweet(){
foreach($tweet as $t) {
$messages = array(
...
Try this instead:
Code:
function insert_tweet ($tweet ) {
foreach($tweet as $t) {
$messages = array(
...