Re: [PHP] Help with logic :(

2005-10-14 Thread aaronjw
Hi all, Just wondering how one would do multiple rows? Instead of me me copying and pasting the same row of code 15 times (multiple data entry form), I just loop until it counts 15? Loops are not a strong point for me at all :( Thanks in advance!!! Aaron -- PHP General Mailing List

Re: [PHP] Help with logic :(

2005-10-14 Thread aaronjw
NEVERMIND. Solved it. Thanks!!! A Hi all, Just wondering how one would do multiple rows? Instead of me me copying and pasting the same row of code 15 times (multiple data entry form), I just loop until it counts 15? Loops are not a strong point for me at all :( Thanks in advance!!!

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
Hi Richard, Ok... I do already have a Unique index on the column but this process is something that I cannot echo out the error code to the user. The code is generated on the fly when an order an is placed so you can see... I can't echo out the error to the customer. Can I do an if statement IF

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
Thanks everyone. Makes sense. Now I got another issue. When I try to see if an error exists I get this: Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home//public_html/Store/test.php on line 14 Is there a setting somewhere that I need to set to make

Re: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
?php include (../utils.inc); $date = date(U); $dateExpire = $date + 90 * 86400; $code = jack; $query = INSERT INTO CouponTable VALUES ('','$date','0','$code','preset','$dateExpire','3.75'); $result = mysql_query($query); echo

RE: [PHP] Help with logic :(

2005-10-11 Thread aaronjw
It's open because if I remove the mysql_error(); and change the value for $code it will insert. A Did you remember to open the database connection? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 1:34 PM To: Dan McCullough

[PHP] Help with logic :(

2005-10-10 Thread aaronjw
Hey guys, Having trouble coming up with a solution to this idea I am trying to implement. I have a Coupon table. I am creating radonly generated coupon codes that go into this table. 12 chars in length - both number and letters - all lowercase. I figure I need to do the following: 1) generate

[PHP] date comparisions...

2005-10-07 Thread aaronjw
I am confused... probably because of lack of sleep. Anyway... I have code that looks like this: if ($discountResult[dateexpired] date(U)) { //dosomething } else { //do something else } Using Epoch obviously Anyway... it's supposed to read: IF the expired date is past the current

Re: [PHP] date comparisions...

2005-10-07 Thread aaronjw
would assume the following: if (2005-09-30 00:00:00 2005-10-07 00:00:00) it should error out, no? Thanks! Aaron Hi aaronjw, Start with the obvious - what actually IS the value of $discountResult[dateexpired]? var_dump it out and have a look. Check you are comparing like with like. You're

[PHP] Port 443

2005-09-01 Thread aaronjw
Hey, Using an API for an Ecomemrce app. Wondering how I can ensure I have access to port 443 and that it's open? Thanks! A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Form Processor?

2005-08-16 Thread aaronjw
Hey all, Does anyone have any recomendations for a GOOD PHP Form Processor software? Kind of in a bind and don't want to reinvent the wheel if I don't have to. Sorry for thr O/T. TIA! A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Event Registration Software?

2005-08-03 Thread aaronjw
Hey guys, Sorry for the OT but I'm having difficulty with this. Client wants us to develop an event registration system for their company (multiple events) with the ability to accept credit card payments. Just wondering if there is a PHP solution already available - paid or opensource - that

[PHP] Ugh. Need some advice...

2005-07-11 Thread aaronjw
Sorry for the OT guys but I really need some advice. I've just started a new company with a friend/associate of mine where we will be selling about 5 products for now. Obviously, I don't require a major front-end but I do require excellent functionality for the back-end. Order Management, export

Re: [PHP] Ugh. Need some advice...

2005-07-11 Thread aaronjw
John Nichel [EMAIL PROTECTED] wrote: http://www.x-cart.com/ Yeah, I downloaded this to play aorund with it. My problem is I am not that great at working with template engines/system. I don't know where the f#!@ to change anything and the documentation isn't all that self explanatory. From

Re: [PHP] Ugh. Need some advice...

2005-07-11 Thread aaronjw
There is not going to be 1 easy solution that you can just magically tie in to your existing design. No matter what solution you chose, you are going to have to hack around to get it all working (any pre-written script). If it DOES everything you need, then you are not going to get any