First, are you sure there is data in $my_array?
Add this after you set the array:
You'll need to loop through the array , writing each line in the file at
//open the file stuff here
foreach ($my_array AS $values)
//close the file stuff here
> -----Original Message-----
> From: OpenSource [mailto:[EMAIL PROTECTED]
> Sent: August 17, 2003 11:31 AM
> To: PHP-DB
> Subject: [PHP-DB] array issue
> Importance: High
> hi ya'll
> I am having a nightmare on this issue of mine.
> I've got this array that I need to write to a file...
> :::::::: sample code below ::::::::
> while (something);
> query data base
> $type1 = array($rotation."\n");
> switch ($r_ul['number'])
> case '4';
> $linea = $type1;
> $final = $linea;
> $my_array = array();
> array_push ($my_array, $final);
> $file = 'db_dump.dat';
> $fp = fopen($file, "w");
> fputs($fp, $my_array); <--- I would like to write the complete array
> the file
> kindly assist with this issue..
> Thanks in advance
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php