Re: [PHP] class problem :(

2009-05-28 Thread Nathan Nobbe
On Thu, May 28, 2009 at 4:28 PM, Luke wrote: > Any ideas? Perhaps there is a different way I could implement the classes - > I would rather not have getObjectIds repeated three times! just make the classes instance-based, thats your easiest bet. (sorry for the extra noise) abstract class Forum

Re: [PHP] class problem :(

2009-05-28 Thread Nathan Nobbe
On Thu, May 28, 2009 at 4:28 PM, Luke wrote: > Right I've read the manual on this and all that so hopefully you find > people > can help. > I have an abstract class with three children. The abstract is ForumObject > and the three children are Thread, Category and Post and each have their > own >

[PHP] class problem

2009-05-28 Thread Luke
Right I've read the manual on this and all that so hopefully you fine people can help. I have an abstract class with three children. The abstract is ForumObject and the three children are Thread, Category and Post and each have their own table so I wrote the following: abstract class ForumObject {

[PHP] class problem :(

2009-05-28 Thread Luke
Right I've read the manual on this and all that so hopefully you find people can help. I have an abstract class with three children. The abstract is ForumObject and the three children are Thread, Category and Post and each have their own table so I wrote the following: abstract class ForumObject {

[PHP] class problem

2003-02-14 Thread Jurek Mizgiert
Hello, I have a problem. Here is code: p1 = $p1; $this->p2 = $p2; } function getP1() { return $this->p1; } function setP1($p1) { $this->p1 = $p1; } function getP2() { return $this->p2; } function setP2($p2) { $this->p2 = $p2; } function toString() { return "p1=" . $this

Re: [PHP] class Problem

2002-09-17 Thread Scott Houseman
Hi there. Try doing it this way: You need to access the class's variable using the $this identifier e.g. > class MenueItem { > var $ID_Menue; > var $Name; > var $Parent_ID; > var $Next_ID; > var $Prev_ID; > > > function Write() { > echo "

[PHP] class Problem

2002-09-17 Thread David Eggler
I create a Instance fo the Class MenueItem in Menue. I change the value of one of its variables. But when i call the function within MenueItem there seems not to be a value: The intresting thing is it works with Other variables, even i cant echo them, they have a value Thanks for help cla

Re: [PHP] Class problem - Fatal error:

2002-08-28 Thread Todd Pasley
> Fatal error: Cannot redeclare class dmsql in It looks like you are after include_once http://www.php.net/manual/en/function.include-once.php Todd - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 2:48 PM Subje

[PHP] Class problem - Fatal error:

2002-08-28 Thread irek
Hello I get this error: Fatal error: Cannot redeclare class dmsql in /usr/local/apache/htdocs/dm/inc/sql.inc.php on line 4 It happens when a user presses the back button, otherwise when the page is first loaded it works fine. Here's the file called with web browser include('class_dmsql.inc.php