Dynadot โ€” .com Transfer

What Programming Language Would Be Best ? Rep+

Spaceship Spaceship
Watch
Impact
1,624
I'd like to sell 500 different items on one page. Availability is only 1 of each. The page I'd like constructed would very simple. Payment would be Paypal or other online payment companies.
Once a purchase is made on an item, that item has to be taken out of the available for sale list.
I'm not sure how I can make a list where the customer can sellect which item they want from the 500 on one page. The list can be just words, or if possible, tiny icons.
I have no idea how to go about this. Any help is appreciated!! Rep for good replies!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
I woudl make a database with an id for each item, the item name, and possibly a description. To show the list, you just select everything from the database and display it. You could list everything on one page, or have seperate pages. Just pass the id to the page and it could just show whatever item has that id. If the icons are all the same, you could easily add it. If the icons are different, add them to the database.

Then when someone buys one, use Paypal's IPN to verify the order went through. If it did, delete the row in the database that has that id. You would have to make sure that the Paypal product id and the database id were the same, but if you made the Paypal button from the database info, you wouldn't have a problem. The items would be removed once purchased and the list of items is dynamically made from the database, so they would be quit showing up on list of items.

As for the language, PHP, Perl, ASP, or JSP could all do it. PHP is probably the easiest language to use. I like Perl, so that's what I would probably use, but in this case, has no real advantage over PHP. ASP is mainly for Windows servers. JSP needs a server that supports it, which isn't very common.
 
1
•••
You can definitely use PHP for this project. Its not that hard of a project, especially if you use PHP Classes.

I wrote a tiny php class that was made to simplify the connections to a mysql database called SMyCC

Its free, and I hope you utilize it.

Best of luck

:)

-Steve
 
1
•••
PHP and a mySQL database would do the trick just fine.

When an item is purchased, the Paypal IPN can post back to your server and you can update the item as being sold, so it is removed from the DB / display. You can do similar things with other merchant accounts.

All in all, it would be a pretty straight-forward PHP task.

-Bob
 
1
•••
why would you want to sell 5000 objects all on one page, sounds like a very bad design IMO
 
0
•••
Amnezia said:
why would you want to sell 5000 objects all on one page, sounds like a very bad design IMO

500, not 5000.
 
0
•••
Paypal integration would be the most tricky part. You wouldnt want to goof up on that. As for listing items for sale, that's not tough at all, and a simple PHP script and a simple database schema would be required. But, dont take the paypal integration lightly ..... paypal provides a sandbox developer account for testing. best is to purchase a paypal integration script and test it against the sandbox. the other stuff like listing stuff for sale is too simple and wont be a problem...
 
1
•••
As I said in the identical post in another area PHP and MySQL.
 
0
•••
Appraise.net
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back