..oO(Mojo)
>ShowPicture function below doesn't produce any code.
>Any help?
>
>Thanks..
>
>Mojo
>
>------------------------------------------------------------------------
>
>
>$xmlFileData = file_get_contents('somefile.xml');
>$xmlData = new SimpleXMLElement($xmlFileData);
>
>
>function showpicture($x) {
> print ($xmlData->product[$x]->image);
>}
>
>
>showpicture(1);
First fix your setting of error_reporting in your php.ini. It should
be E_ALL|E_STRICT on a development machine. Make sure display_errors
is enabled as well. Then PHP will at least show you a notice. If that
doesn't help, read about global variables and variable scope.
Micha
>> Stay informed about: Function Problem