Re: [PHP] PHP Shopping Carts ??
In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond I'm sure they have one: http://hotscripts.com/PHP/Scripts_and_Programs/ Pat
[PHP] correct date
I am making a site where people get 3 free months from when they register. In a table I have 2 different fields; 1 for when they register, and another I want exactly 3 months later. I have this code:
[PHP] correct date (cont.)
Oops..(Hit send prematurely.) $currentmonth = date(m); $currentday = date(d); $year = date(Y); $newmonth = $currentmonth + 3; if ($newmonth 12){ $newmonth = $newmonth % 12; $year = $currentyear + 1; } $3months = date(Y-m-d,mktime(0,0,0,$newmonth,$currentday,$year)); This should get me exactly 3 months later and also checks for if its a later month (oct, nov, or dec) then it goes to the next year. How could I check to see if the new date doesn't fall on Feb. 30th or whatever? If someone signs up on the 31st of a month it'll never end on a month with 31 days. Thanks, Pat
Re: [PHP] Good Tutorial
www.devshed.com www.phpbuilder.com www.thickbook.com www.phpwizard.net hotwired.lycos.com/webmonkey/programming/php/ www.hotscripts.com is great for finding php scripts that are available hth, Pat
Re: [PHP] Mailing 4 newbies
? $to = [EMAIL PROTECTED]; [EMAIL PROTECTED]; $subject = Subject here; $message = Message here; $from = [EMAIL PROTECTED]; mail($to, $subject, $message, $from); ? That should do it. Pat
Re: [PHP] search array for value
In a message dated 7/31/01 12:32:59 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: How do I search an array? For example if I want to know if $array contains 1... Regards, Matthew Delmarter for ($i = 0; $i count($array); $i++) { if ($array[$i] == 1) { //do something exit; } }