close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

unable to turn off "test mode" in Authorize.net

Thread began 1/08/2011 7:03 pm by James L | Last modified 1/14/2011 2:45 pm by James L | 6097 views | 15 replies

James L

Thanks, I wondered why the values were empty. But I don't understand php enough to add what I want to happen and hope you can provide the code.
My client wants the customerID to increment by 1 with each new customer. (I assume this will go into the Visitors database, we started with the arbitrary #135).
The invoice number goes into Orders and OrderDetails (I assume), my client wants this year's records in increments of 11000, incremented by 1 for each new invoice. I've manually added the first entry in mysql, with an invoice number of 11001 and a customerID of 135 (and my client's name and address data).

In my rudimentary understanding of mysql & php, I'm guessing that there has to be some check to see if this customer exists already and pulls up their customerID, if it doesn't find the individual in the visitors database there is a way to find the maximum ID number that exists and increment this by +1 and assign this to the new client. Is this how it works, and can you help with this code?
Invoice# seems a bit more straight forward, by obtaining the maximum invoiceID that exists and incrementing it by +1 and assigning that number to the new invoice.
Thanks for your help in advance.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...