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
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
>
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
{
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
{
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
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 "
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
> 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
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
9 matches
Mail list logo