473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I have developed a web forum and I need help

My script is not running, can someone help me.This is the code.
[PHP]<?
//display_tree() Function from output_funs.php
function display_tree($expanded, $row = 0, $start = 0)
{
// display the tree view of conversations

global $table_width;
echo "<table width = $table_width>";

// see if we are displaying the whole list or a sublist
if($start>0)
$sublist = true;
else
$sublist = false;

// construct tree structure to represent conversation summary
$tree = new treenode($start, '', '', '', 1, true, -1, $expanded, $sublist);

// tell tree to display itself
$tree->display($row, $sublist);

echo "</table>";
}
?>
<?
function display_index_toolbar()
{
?>
<table width = 90% cellpadding = 4 cellspacing = 0>
<tr>
<td bgcolor = "#cccccc" align = right>
<a href = "new_post.php?parent=0"><img src="images/new-post.gif"
border = 0 width = 99 height = 39></a><a
href = "index.php?expand=all"><img src="images/expand.gif"
border = 0 width = 99 height = 39
alt = "Expand All Threads"></a><a
href = "index.php?collapse=all"><img
src="images/collapse.gif" border = 0 width = 99
height = 39 alt = "Collapse All Threads"></a>
</td>
</tr>
</table>
<?php
}
?>[/PHP]
This is the error I'm getting.
Fatal error: Cannot instantiate non-existent class: treenode in C:\project\test\output_funs.php on line 17
The line of code in question is this one.
[PHP]
$tree = new treenode($start, '', '', '', 1, true, -1, $expanded, $sublist);
[/PHP]
Thanks for time you share with me.[HTML][/HTML]
Feb 16 '07 #1
1 2335
ronverdonk
4,258 Expert 4TB
That class cannot be found. So probably you have forgotten to include it in your script or mistyped the path to, or the name of, the class file.

Ronald :cool:
Feb 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: sq1492 | last post by:
There are lots of talks about .Net going around. .Net is considered to be a RAD (rapid application development) framework so the question remains open whether it's useful for developing software...
0
by: qwe85 | last post by:
Peter, I can't find any codes from the links that u gave me.Perhaps i'm not an IT savvy guy.I'm not good at programming. Would you kindly give me the direct links or direct codes on how to create...
4
by: Praveen Chandra | last post by:
Hi, I just wanted to put down the issue with more detailed information so that you can help us get to the right Microsoft resource for a solution! Here is the problem description... Our...
0
by: dba123 | last post by:
OK, maybe I can get some help here, this is a last resort. I know I'm asking a lot by having you download and install this but it's really not that bad and I've had it. Their support has sucked,...
4
by: uanmi | last post by:
Please create an Enterprise Library Forum asap. There is no help on gotdotnet for the many people asking questions. My project is stuck without some answers. -- regards, Mark
1
by: Ellen12c | last post by:
On the last post I asked about a code to make a vertical scroll bar and ends up I didn't need one. I was told by a big group of people on this forum that I needed to do away with all the flash and...
5
WebMissy
by: WebMissy | last post by:
I have a forum all set up and everything works great. I decide to use IE 7 for the benefit of transparent PNG files. All is well with that but now my scripting for my colored scrollbars doesn't show...
2
by: tridirk | last post by:
Hi; I am getting a Objceted Expected Error on my forum site. I can't find what is wrong? Line: Char: Error: Object expected Code:0 the site is My SMF Forum
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.