Hi,
I got a weird problem. I've started a session, instantiated a class for creating HTML-templates which pulls the content from a MySQL-DB etc. While it all works on all other pages (where the code is very identical) the property $HMTL->mainContent is not passed to the object $HTML, because when I call $HTML->createHTML() the property is regarded as empty by it...
The typical php-code for an individual website is
<?php
include ("class_herbs.inc");
include ("class_user.inc");
include ("class_display.inc");
$HTML=new webpage;
$herbs=new herbcart;
session_register("herbs");
session_register("user");
session_register("HTML");
....
$HTML->pageID=$herbs->pageID="webpage";
$HMTL->mainContent.=$herbs->herbOrders();
$HTML->createHTML();
?>
Has anyone ever had a similar experience?
Your help is really most appreciated!
Thanks
Patrik