|
Posted by degol on 08/30/06 11:30
If I define an array "by hand" in the following manner, everything works
fine in my script:
$selb = array (
"/var/www/tmp/image.jpg","/var/www/tmp/image2.jpg");
If I fill the same array with the following function, I get error messages:
function test(){
$suche="SELECT * FROM tabelle";
$erg=mysql_query($suche) or die(ERR_ABFRAGE);
$all=mysql_fetch_array($erg);
do {
$array[] = $all["bla"];
}while($all=mysql_fetch_array($erg));
mysql_free_result($erg);
return $array;
}
Not Supported File Warning: Unknown(): The session id contains invalid
characters, valid characters are only az, AZ and 0-9 in Unknown on line 0
und
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp/session)
in Unknown on line 0
When I print those arrays, they look identical. The Output is WML.
Does anyone have a hint for me?
Thanks a lot!
Degol
[Back to original message]
|