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
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
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:
,
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
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
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
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
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
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
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
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() {
. 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
: 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
13 matches
Mail list logo