hello alexruimy,
Try to use array
fpepito
try this example: http://www.fpepito.org/php/test3.php
[PHP]
<?
$customers = array(
array("Firstname", "lastname", "address", "city", "state", "zip", "e-mail@hotmail.com", "url"),
array("Francis", "Goncalves", "my adress", "Paris", "Ile-de-France", "75001", "test@hotmail.com", "http://ascejudo.mine.nu"),
array("Francisco", "Goncalves Andrade", "my address", "Lisbon", "Estremedura", "60000", "test@hotmail.com", "http://www.fpepito.org/")
);
#########
function read_customer($customers) {
#read each Customer on the list of Customers
while (list ($key, $customer) = each ($customers)) {
echo "send e-mail to $customer[6]
\n";
echo "A Worthwhile Subscription has been ordered for: \n".$customer[0]." ".$customer[1]."\n".$customer[2]."\n".$customer[3].", ".$customer[4];
echo "\n";
}
}
read_customer($customers);
?>
[/PHP]