Notice: Undefined index help

My messageboard shows undefined index, dont know wht=y

Page 1 of 1

2 Replies - 914 Views - Last Post: 29 November 2010 - 06:19 PM Rate Topic: -----

#1 Dio1080  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 25-March 08

Notice: Undefined index help

Posted 29 November 2010 - 12:16 PM

Hello, the message board I have created shows this in the middle of it. "Notice: Undefined index: 1 in C:\wamp\www\MessageBoard\treenode_class.php on line 38" I go to line 38 of my treenode_class Attached File  treenode_class.php (4.27K)
Number of downloads: 36 and can't seem to find out why. I have the php as an attachment since it is kinda big...

Is This A Good Question/Topic? 0
  • +

Replies To: Notice: Undefined index help

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Notice: Undefined index help

Posted 29 November 2010 - 12:38 PM

if($sublist || $expanded[$row['postid']] == true) {


Well, as the error says, either $row['postid'] isn't set or $expanded[$row['postid']] is not set. You should print these values to see which isn't set and then figure out why that's the case.
Was This Post Helpful? 0
  • +
  • -

#3 Dio1080  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 25-March 08

Re: Notice: Undefined index help

Posted 29 November 2010 - 06:19 PM

I figured it out, I had expanded when it was suppose to be expand.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1