Welcome Guest, Not a member yet? Register   Sign In
undefined index
#14

[eluser]PhilTem[/eluser]
Please use http://gist.github.com to post your looooooong codes (it's much nicer to read ever since the forums have changed styles and you can edit it online avoiding to post the code over and over again)

To answer your question:

[quote author="swgj19" date="1354020979"]I just used print_r ($comment);
The result is Array()

I also used var_dump ($comment);
The result is array(0) { } [/quote]

Do you know what this means? The item you want to access is empty hence there is no key named 'name' which means in return that your database query returns an empty set. Either because there's an error in one of these many lines OR because there is no matching item in the database.


Messages In This Thread
undefined index - by El Forum - 11-27-2012, 01:53 AM
undefined index - by El Forum - 11-27-2012, 01:54 AM
undefined index - by El Forum - 11-27-2012, 04:12 AM
undefined index - by El Forum - 11-27-2012, 04:44 AM
undefined index - by El Forum - 11-27-2012, 05:06 AM
undefined index - by El Forum - 11-27-2012, 05:07 AM
undefined index - by El Forum - 11-27-2012, 05:35 AM
undefined index - by El Forum - 11-27-2012, 05:44 AM
undefined index - by El Forum - 11-27-2012, 05:56 AM
undefined index - by El Forum - 11-27-2012, 06:07 AM
undefined index - by El Forum - 11-27-2012, 06:21 AM
undefined index - by El Forum - 11-27-2012, 06:23 AM
undefined index - by El Forum - 11-27-2012, 07:49 AM
undefined index - by El Forum - 11-27-2012, 09:30 AM
undefined index - by El Forum - 11-27-2012, 09:39 AM
undefined index - by El Forum - 11-27-2012, 10:08 AM
undefined index - by El Forum - 11-27-2012, 01:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB