On Thu, 02 Sep 2004 22:23:29 GMT, "kingofkolt"
<je**********@comcast.net> wrote:
"siu02rk" <si*****@hotmail.com> wrote in message
news:82**************************@posting.google. com... Hi all,
I am trying to get an understanding of classes within PHP. What is
wrong with this code:
<html>
<title> This is my test for creating a class </test>
<body>
<?php
class Test
{
$Message = "Default Message";
Test($Message)
{
$this->$Message=$Message;
}
Display_Message()
{
echo "$Message";
}
}
$TestObject = new Test("Hello World!!");
$Testobject->Display_Message();
change to:
$TestObject->Display_Message(); // (capitalization error)
And, less importantly, change </test> to </title>
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================