2, December 2008

How i can make db_cart to work with data from access_user class? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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: How i can make db_cart to work with data from access_user class?
« previous next »
Pages: [1] Print

Author Topic: How i can make db_cart to work with data from access_user class?  (Read 848 times)
I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« on: Apr 25, 2007, 06:26:58 AM »

Hello Olaf!
Thank you for message.And sorry i tryed to contact you directly.Just im not so good to surf around forums...I sow some archive about validate class and i found nesesery information and fix the problem.Now feeback form is working.Now i need some advice how to make db_cart to work with already existing data from access_user class tables if is posible?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6479
39706 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Apr 25, 2007, 08:53:55 AM »

Hello Olaf!
Thank you for message.And sorry i tryed to contact you directly.Just im not so good to surf around forums...I sow some archive about validate class and i found nesesery information and fix the problem.Now feeback form is working.Now i need some advice how to make db_cart to work with already existing data from access_user class tables if is posible?

Actually the script is written to use it with access_user:

check the code inside "db_cart_checkout_example.php"

Code:
$myCheckout = new db_cart(8000);

the number 8000 could be the user id from AU

this code snipped demonstrates how to read the file from the profile table:

Code:
if (!$myCheckout->check_return_shipment()) {
// get the external customer data here
$cust_conn = mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD);
mysql_select_db(DB_NAME, $cust_conn);
// the exampple query for customer data (the default shipment address)
$cust_sql = sprintf("SELECT name, name2, address, address2, postal_code, place, country FROM db_cart_example_customer WHERE cust_no = %d", $cust_no);
$cust_result = mysql_query($cust_sql) or die(mysql_error());
$cust_obj = mysql_fetch_object($cust_result);
$myCheckout->ship_name = $cust_obj->name;
$myCheckout->ship_name2 = $cust_obj->name2;
$myCheckout->ship_address = $cust_obj->address;
$myCheckout->ship_address2 = $cust_obj->address2;
$myCheckout->ship_pc = $cust_obj->postal_code;
$myCheckout->ship_city = $cust_obj->place;
$myCheckout->ship_country = $cust_obj->country;
mysql_free_result($cust_result);
$myCheckout->insert_new_shipment();
} else {
$myCheckout->set_shipment_data();
}



of course you can use the methods from AU here and you need to protect pages if needed


Last blog : Just a better Internet portal provided by Google
I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« Reply #2 on: Apr 26, 2007, 05:21:25 AM »

Thank you! I will check up.
I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« Reply #3 on: May 02, 2007, 08:42:21 AM »

Hello Olaf,sorry but I didnt get it...Im maybe too much beginer ,i was trying hard in many ways,but all the time got some errors...
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6479
39706 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 02, 2007, 09:50:34 AM »

Hello Olaf,sorry but I didnt get it...Im maybe too much beginer ,i was trying hard in many ways,but all the time got some errors...
Huh


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6444
Tags : How i can make db_cart to work with data from access_user class? Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: How i can make db_cart to work with data from access_user class?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 02, 2008, 08:20:25 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!


Forum Statistics
Total Posts: 37.937
Total Topics: 7.679
Total Members: 4.444
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Naviator

24 Guests, 4 Users online :

11 users online today:



Readers

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