Re: tie string value together
| From: | Iv�n S�nchez Ortega \"MR\" | Date: | Mon, 15 Jan 2001 08:27:14 +0000 |
| Subject: | Re: tie string value together | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34595@lists.php.net to get a copy of this message | ||
"Brian Clark" ...
>
> Not quite; you want the concatenation operator:
>
> $Birthdate = $year . $month . $day; /* assuming &&day was a typo */
>
> This will also work:
>
> $Birthdate = "$year$month$day";
As i know, databases use a 00/00/0000 date format, so the thing you may do
is
$birthdate = $day . "/" . $month . "/" . $year;
or
$birthdate = "$day/$month/$year";
But you should refer to your database's documentation, i'm not sure it's
always true.