28, May 2012

Empty Customers Database - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: Empty Customers Database
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Empty Customers Database  (Read 3428 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: May 10, 2006, 09:40:17 pm »

Hi Olaf, as first : THANKS for the great db cart script you made. i really appreciate. what i dont get (please explain) is how can i work with an EMPTY customer db? how do i use the script for NEW clients....

1: yes i am using example db

Thanks for your help!
« Last Edit: May 10, 2006, 09:45:36 pm by gjv »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 10, 2006, 09:43:07 pm »

Hi Olaf, as first : THANKS for the great db cart script you made. i really appreciate. what i dont get (please explain) is how can i work with an EMPTY customer db? how do i use the script for NEW clients....

Thanks for your help!
Hello,

are you using the example database? just empty the customer table?


I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: May 10, 2006, 09:44:59 pm »

Hi Olaf, yes i emptyed the customer table, but than the programm does not INSERT the new data into all db's, in plus no EMail is sent to the clients who ordered...THANKS for your help!!!
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 10, 2006, 09:54:11 pm »

Hi Olaf, yes i emptyed the customer table, but than the programm does not INSERT the new data into all db's, in plus no EMail is sent to the clients who ordered...THANKS for your help!!!

yes, you're right there are no functions to add customer to the database (because the class its a shopping cart not a membership management application)

You can do two things:
build some simple forms to insert the customer data via the web
or try this class: http://www.finalwebsites.com/snippets.php?id=10

the same is for the products, there is no CMS to admin the products. My first idea was to write a class to use with an existing database

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #4 on: May 10, 2006, 11:28:55 pm »

one more question olaf...i found this code in your class, wich actually should do what i was asking for (empty customer db -> fill in new data:

$sql_new = sprintf("INSERT INTO %s (customer, order_date) VALUES (%d, NOW())", ORDERS, $customer);

is that working?
thanks!
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: May 10, 2006, 11:56:26 pm »

one more question olaf...i found this code in your class, wich actually should do what i was asking for (empty customer db -> fill in new data:

$sql_new = sprintf("INSERT INTO %s (customer, order_date) VALUES (%d, NOW())", ORDERS, $customer);

is that working?
thanks!

NOOO!

thats the table used for the orders Wink

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2479
Tags : databases cms email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: Empty Customers Database
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 11:03:42 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.