Welcome Guest, Not a member yet? Register   Sign In
Beginner getting a grasp of MVC/CI/PHP and Twitter library
#12

[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(
...


Messages In This Thread
Beginner getting a grasp of MVC/CI/PHP and Twitter library - by El Forum - 09-15-2009, 03:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB