Welcome Guest, Not a member yet? Register   Sign In
I have problem
#3

[eluser]TheBaron[/eluser]
The first error is simple.

Code:
$foo = '';
$foo->boo;

It appears on a cursory scan that you are assigning your posts to an array. You are then treating that array like an object.

Code:
$post->title; // Wrong
$post['title'] // Correct

As for the second problem... I don't know where it is. Don't these errors have line numbers?

It is caused by using array syntax on a non-array... i.e.

Code:
$foo = '';
echo $foo[0];

Hopefully this should help you find the problems.


Messages In This Thread
I have problem - by El Forum - 07-18-2011, 05:33 AM
I have problem - by El Forum - 07-18-2011, 09:33 AM
I have problem - by El Forum - 07-18-2011, 09:49 AM
I have problem - by El Forum - 07-19-2011, 01:53 AM
I have problem - by El Forum - 07-19-2011, 01:24 PM
I have problem - by El Forum - 07-19-2011, 08:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB