Below is a section of my code - i would like to be able to put the
variable renaming bit in to a function so that i don't have to keep
cutting and pasting it. the function would take (in this case) $sculp and
$paint_draw as its arguments. I spent a very long day failing to get it
to work -any help appreciated.
PHP:
-------------------------------------------------------------------------
-------
case artbycas:
$table_name = array('artbycas_paint_draw', 'artbycas_sculp');
create_output($table_name);
randomize (1,2); //pick $numbers
$z = 1;
foreach ($numbers as $currNum){
$paint_draw[$z++] = $output[$currNum]; //rename $output[foo]
} //$paint_draw[1] , $paint_draw[2]
randomize (3,4);
$z = 1;
foreach ($numbers as $currNum){
$sculp[$z++] = $output[$currNum];
}
break;
-------------------------------------------------------------------------
-------
--
**************************************
The Eldritch Dark:
Dedicated to Clark Ashton Smith
http://www.eldritchdark.com/