I apologize
the correct order is -MM-DD so you would do:
$mysqldate = $_POST["year"]."-".$_POST["month"]."-".$_POST["date"];
-Original Message-
From: v0idnull [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 4:37 AM
To avoid user error (remember, 90% of internet users are stupid and
illogical and don't know anything), just have drop down menus for the dates
and months and allow the user to enter in the year
then just do:
$mysqldate = $_POST["month"]."-".$_POST["date"]."-".$_POST["year"];
-Original Mes
http://www.psikon.com/vartest.php
http://www.psikon.com/vartest.phps
how can I get rid of that null character or am I forced to use sub_str in
this case?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A friend of mine showed me this code recently.
function firstLogin_string() {
mt_srand(make_seed());
$pool = "AaBbCcDdEeFfGgHhIiJjKkLlM";
$length = 26;
for($i=0; $i < $length; $i++) {
$key .= $pool[mt_rand(0,strlen($pool)-1)];
}
retu
4 matches
Mail list logo