[PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
Dear my friends, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book taught. the book titled MySQL/PHP Database Application by Jay Greenspan say these lines should work but in fact it don't work as expected. Here

Re: [PHP] OOP in PHP

2007-08-15 Thread Nathan Nobbe
what sort of error are you encountering ? -nathan On 8/15/07, Patrik Hasibuan [EMAIL PROTECTED] wrote: Dear my friends, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book taught. the book titled MySQL/PHP

Re: [PHP] OOP in PHP

2007-08-15 Thread Robert . Degen
Theoritically if Class koneksi is being initialized than it prints koneksi berhasil (connection succeeded) but it doesn't. What does it? Just nothing? No warnings at all? Possibly disabled? so far rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book taught. the book titled MySQL/PHP Database Application by Jay Greenspan say these lines should work but in fact it don't work as expected. Here is my code

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
a look below within your class. I corrected it. try also using include_once instead of require and make sure that your error level and reporting are turned on so you can see what is happening. Patrik Hasibuan wrote: Dear my friends, This is the first time for me to use OOP

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
code. Take a look below within your class. I corrected it. try also using include_once instead of require and make sure that your error level and reporting are turned on so you can see what is happening. Patrik Hasibuan wrote: Dear my friends, This is the first time for me to use OOP concept

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
of require and make sure that your error level and reporting are turned on so you can see what is happening. Patrik Hasibuan wrote: Dear my friends, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
mistake on my OOP PHP5 codes. - //pelangganbaru.php ?php include_once koneksi.php; $sqlnya=select * from countries; ok, don't know why it took me this long to realize what the problem is. The following line will return the object of a the class that you are initializing

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
telling what is my mistake on my OOP PHP5 codes. - //pelangganbaru.php ?php include_once koneksi.php; $sqlnya=select * from countries; ok, don't know why it took me this long to realize what the problem is. The following line will return the object of a the class that you

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
countries results empty value. So I believe the problem is still on the my OOP programming because if I do the query only with the procedural concept the $kueri will content the complete record of the column country. Please keep telling what is my mistake on my OOP PHP5 codes

[PHP] OOP in PHP 5 won't work under IIS 5.1

2004-09-05 Thread Felix Ang
I installed PHP 5 and tried phpinfo(). It worked. But then I tried OOP sample from www.php.net http://www.php.net/ , like: ?php class MyClass { private $Hello = Hello, World!\n; protected $Bar = Hello, Foo!\n; protected $Foo = Hello, Bar!\n; function printHello() {

[PHP] OOP with PHP

2002-05-21 Thread Erik Price
. This contradicts my limited experience with OOP in PHP, but I hoped someone could confirm this before I write up this giant class I'm working on. Thanks! Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] OOP with PHP

2002-05-21 Thread Scott Hurring
: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 2:14 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP with PHP Yesterday, I read in the archives somewhere that in PHP, class attributes are all static attributes (class variables), not instance variables. (Figures, I can't