RE: [PHP] Forms and MySql date

2003-02-21 Thread v0idnull
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 Message-

RE: [PHP] Forms and MySql date

2003-02-21 Thread v0idnull
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: [EMAIL PROTECTED] Subject: RE: [PHP] Forms and MySql date

[PHP] NULL character help

2003-02-18 Thread v0idnull
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

[PHP] Arrays as pointers?

2002-01-24 Thread v0idnull
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)]; } return