I get an error:
Fatal error: Call to a member function on a non-object in
It s telling me that $objImage: is not an object. Although i made it an
object in the constructor. Someone can help me out?
kind regards
Stijn
The errorline is: $objImage->createImage($i ndex);
include_once('c lass.UploadPict ure.php');
class Album
{
var $objImage;
function Album($width) //constructor
{
$objImage = new UploadPicture($ width,'');
}
function putImage($index )
{
$objImage->createImage($i ndex);
}
}
?>
Fatal error: Call to a member function on a non-object in
It s telling me that $objImage: is not an object. Although i made it an
object in the constructor. Someone can help me out?
kind regards
Stijn
The errorline is: $objImage->createImage($i ndex);
include_once('c lass.UploadPict ure.php');
class Album
{
var $objImage;
function Album($width) //constructor
{
$objImage = new UploadPicture($ width,'');
}
function putImage($index )
{
$objImage->createImage($i ndex);
}
}
?>
Comment