Hello All,
I've been looking around for an answer to my problem. The answer seems easy, but I don't know it. So I come to you folks now, asking for help. Here's my problem/situation:
What I want to do is have a Quote Of The Day table in my database that is sorted by date (0000-00-00), quote and who said it. I've got the administrative part down except for one thing. On my QOTD Admin page (the beginings of it anyway) I have the date broken down into 3 <select> form fields. One for the month, one for the day, and one for the year. This is mostly for the convenience of other users who may use this form. In comes the problem!! ----> I want to take these three variables ($year, $month, and $day) and insert them into the database as $date.
I've tried setting a variable at the top of the php file called $date, and told it to use those variables, but nothing happens.
It looks like so:
$date = $year . $month . $day;
originally I tried this:
$date = $year-$month-$day thinking of the 0000-00-00 format. But then I realized it's trying to subtract itself.
Is there anything I can do to pass those 3 variables into one $date variable to be inserted into the database? It seems easy enough, but I'm clueless.
Thanks for any help! =D
./brm