Re: [PHP] PHP Shopping Carts ??

2001-08-14 Thread DrWebPat
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

2001-08-09 Thread DrWebPat
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.)

2001-08-09 Thread DrWebPat
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

Re: [PHP] Good Tutorial

2001-07-31 Thread DrWebPat
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

2001-07-31 Thread DrWebPat
? $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

2001-07-30 Thread DrWebPat
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