RE: [PHP] classes- getting their slowly but surely I think

From: Date: Thu, 28 Mar 2002 16:49:05 +0000
Subject: RE: [PHP] classes- getting their slowly but surely I think
Groups: php.general 
Request: Send a blank email to php-general+get-90556@lists.php.net to get a copy of this message
this appears to be a coding issue. show your code...we can't read your mind... -----Original Message----- From: Caspar Kennerdale [mailto:caspar@thetuckshop.com] Sent: Thursday, March 28, 2002 6:45 PM To: PHP Subject: [PHP] classes- getting their slowly but surely I think just a quick query, hopefully someone can help (sorry for these repeat schooboy questions) re classes- Can you create an instance of a class and use its 'value' within an instance of another instance of the same class? For example I have created two classes- html.class and db.class I am creating an instance of the db.class to give an array containing the rows from a table. I would like to create a table using my HTML.class and using a while loop create a <tr> using the date collected from each row in my db.class. This all works fine. However when I embed this newly created table into a cell of another table created with html.class, the table is still created but it does not appear in the cell, but outside of the desired table- so I have two tables side by side instead of one table embedded within the cell of another? Is this a code/ syntax issue or have I misunderstood the scope of classes? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#90556) next »