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>';
I split the date into 3 parts like day,month,year.PHP Code:<?php
for($i=1;$i <= decrypt_str($_GET['cusers']);$i++){
echo'<select class="textbox2" name="dobyyyy[]">';
echo'<option value="1980">1980</option>';
Then use this php main script to combine
The date is coming from array so in the $_GET there are 2 child.PHP Code:$dobdd=($_POST['dobdd']);
$dobmm=($_POST['dobmm']);
$dobyyyy=($_POST['dobyyyy']);
$dtdob[] =$dobyyyy."-".$dobmm."-".$dobdd;
Then it will saved to db like this:
The problem is that how to split the date for two or three child to enter itPHP Code:$sql .= "`dtdob` = ('" . $dtdob[0] . "'), ";
$sql .= "`dtdob` = ('" . $dtdob[1] . "'), ";
to the db seperatly for every child...
Any help will appreciated.
Thanks

