ARRAY, IF & INSERT

From: Date: Fri, 21 Jun 2002 09:06:18 +0000
Subject: ARRAY, IF & INSERT
Groups: php.db php.general 
Request: Send a blank email to php-general+get-103246@lists.php.net to get a copy of this message
Hi all. I have this form in which one Administrator can insert new members and after that, in another page, a form where he/she can insert the new member’s sons & daughters. I want to display a table with “text inserts” into the admin can type let’s say a maximum of 5 kids in the second page. The “members” table will have one memberID field (which will be shared between parents and kids) and a levelID which will grant 0 for the parent and 1, 2, 3, 4, 5 for the kids. Now, how do I tell PHP to make an array from the kids input, but only from the fields in which let’s say the “name” field was filled out in order to spend the necessary table’s rows. Another thing… the Array should also specify new levelID’s for each kid from 1 to 5. It would be great if you also show me how to deal with it after it’s created. Thanks a lot and sorry for so many questions, Cesar Aracena <mailto:webmaster@icaam.com.ar> CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621

« previous php.general (#103246) next »