Hi guys:
i need some help on date function...

Let me explain.
i have a form where i use for loop to increment the date depend on the $_GET .
PHP Code:
<?php
                    
for($i=1;$i <= decrypt_str($_GET['cusers']);$i++){

                    echo
'<select class="textbox2" name="dobdd[]">';
                    echo
'<option value="1">1</option>';
PHP Code:
<?php

                    
for($i=1;$i <= decrypt_str($_GET['cusers']);$i++){
                    echo
'<select class="textbox2" name="dobmm[]">';
                    echo
'<option value="1">1</option>';
PHP Code:
<?php
                    
for($i=1;$i <= decrypt_str($_GET['cusers']);$i++){
                    echo
'<select class="textbox2" name="dobyyyy[]">';
                    echo
'<option value="1980">1980</option>';
I split the date into 3 parts like day,month,year.

Then use this php main script to combine
PHP Code:
$dobdd=($_POST['dobdd']);
     
$dobmm=($_POST['dobmm']);
     
$dobyyyy=($_POST['dobyyyy']);
$dtdob[] =$dobyyyy."-".$dobmm."-".$dobdd
The date is coming from array so in the $_GET there are 2 child.
Then it will saved to db like this:
PHP Code:
$sql .= "`dtdob` = ('" $dtdob[0] . "'), "
$sql .= "`dtdob` = ('" $dtdob[1] . "'), "
The problem is that how to split the date for two or three child to enter it
to the db seperatly for every child...
Any help will appreciated.
Thanks