> Guys I need help! > > I think I am on the right track with my logic but my code fails. > Can someone help? (my coding is weak no formal training). I do not want to be rude, but you should try to pick up basic programming principles, and then you wants to get yourself familiar with the syntax of php. You can find good information about this if you read the page found at: http://www.php.net/manual/en/control-structures.php Otherwise you function is so full of syntactic and semantic faults it is not really possible to understand what it is you want to do. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php