Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php query development
Old 07-06-2005, 04:06 PM php query development
Junior Talker

Posts: 1
Trades: 0
Background:
I have a shopping cart and using fedex as my shipping. Unfortunately, the shopping cart does not connect with fedex directly to print out the shipping labels, get tracking number and everything else, it just gives the rate of the shipment. I contacted fedex and they gave me a software to batch upload all orders at once, or individually. Problem, my cart does not export shipping info in csv, so I either have to go into the database every day to export and create a custom query in the format of fedexs csv uploader, or type each order out individually. I would rather not do either of those.

Prefer:
I would like to set up a web page in my general admin area where I could query the database from online and it spits out a straight csv file or a zipped csv file with the info requested. It took quite a few hours on my end, being ignorant to this whole programming thing, to make the initial query statement that needs to run..
Code:
SELECT orders_id, customers_company, customers_name,  delivery_street_address,   delivery_suburb,  delivery_city,  delivery_state,  delivery_country, delivery_postcode,  customers_telephone FROM  `gp_orders`  WHERE orders_id>147
What I need to be able to happen is the query of "orders_id>147" needs to be a text area that I type the number into. That is the first order of the day and I would type it in, that way I only get the orders of this day to spit out when I press the link or submit button.

And I know there are other carts out there that may do this, but I prefer this cart and it has a whole lot of other features.

Can someone help me put together this php page?

Thanks.
Champak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-08-2005, 02:16 PM
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
If I have you right, I believe all you will have to do is create a form/script that will do the query for you and create the csv. If you are using the phpmyadmin GUI follow the instructions on how to export a file, then just look at the phpmyadmin interface and look at the query it creates. Phpmyadming shows the query it used to produce the results. You then just use that query in your script to produce the csv.

Phpmyadmin allows you to create and export csv files and zip them also. Because phpmyadmin GUI is written in php, I believe you can view the query results of what you do in it.

Hope it helps.
bman is offline
Reply With Quote
View Public Profile
 
Old 07-08-2005, 03:03 PM
KML9870's Avatar
One Bad Mamma :-)

Posts: 5,489
Name: Kandi
Location: Western NY
Trades: 0
in my experience with phpmyadmin the script is slightly off from what you need to plug into make it work - i.e. single quotes instead of double quotes - but mostly if I can't figure out how to do something I want to do I will try it in phpmyadmin and adjust the script when pasting it.
KML9870 is offline
Reply With Quote
View Public Profile
 
Old 07-09-2005, 01:35 AM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Or, you could look here which should be a big help to your cause. It is file manipulation, which can help you to make php create csv.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to php query development
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14446 seconds with 12 queries