Hello Jacky,
(Jl == "Jacky@lilst") [EMAIL PROTECTED] writes:
Jl> This may sound too easy to ask but I want ot make sure if I'm
Jl> correct. I have a form with date, month and year select fields in
Jl> it. When I submit, i want to tie those three fields value together
Jl> and insert into a field in table which has date data type. Is it
Jl> correct to tie those three value like below?
Jl> $Birthdate = $year&$month&&day;
Not quite; you want the concatenation operator:
$Birthdate = $year . $month . $day; /* assuming &&day was a typo */
This will also work:
$Birthdate = "$year$month$day";
And so will this:
$Birthdate = "${year}${month}${day}";
Jl> And I will insert value in $Birthdate into table.
Jl> cheers
Jl> Jack
-Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]