How do I setup a database |
How do I setup a database |
jcjdoss |
Feb 10 2007, 03:45 PM
Post
#1
|
Novice Group: Members Posts: 23 Joined: 23-September 06 From: California Member No.: 211 |
I am trying to setup a dynamic website. (we sell trailers) I want the trailer pictures and description to come up, but I have a problem. How do I get my text and images in my database. I use GoDaddy, they provide everything I need. I just have no idea how to set it up.
|
DMW |
Mar 9 2007, 06:39 PM
Post
#2
|
Newbie Group: Members Posts: 14 Joined: 7-March 07 Member No.: 2,129 |
This is a good question, I wish someone would answer it. I have the same question.
|
Brian Chandler |
Mar 9 2007, 11:44 PM
Post
#3
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
This is a good question, I wish someone would answer it. I have the same question. Basically you either write your own db application (which is not a vast job, but takes a lot more than an afternoon), or you use a prewritten system, such as oscommerce, which you customise following their instructions. If you write your own, you need to be familiar with a programming language (e.g. PHP), and read enough of the db manual (e.g. Mysql) to be able to write the calls to access the db. Something like Mysqladmin[?] may be a good way to set up and manage the database. The basic tables in the database are not so complicated: you need a table with one entry for each trailer / jigsaw puzzle / gizmo-whatever, with fields for the product code, the title/name, description, price, stock level, and so on. At the simplest you only need to write one function called show_prod($pcode), where $pcode is the code identifying the product, and this function generates all of the html for a single item, including PayPal links, or whatever. You can manage the stock levels manually when an order arrives. The great thing about writing your own is that you can easily add all the features that are particular to your particular system, such as being (semi)bilingual, or features specific to the product - jigsaw puzzles have a landscape/portrait/other flag, where trailers don't, for example. Disclaimer: I wrote my own, and haven't used oscommerce, mysqladmin or any similar systems. I have no idea just where with such systems you would hit the wall, and discover that there was no way (for example) to include a database of artists (such as I need). Ultimately oscommerce etc are Solutions, whereas php/mysql is a set of Tools. You really have to learn how to use Tools, whereas all you have to do with Solutions is use them, until you discover somewhere that your problem is not the one to which the Solution is, um the solution, and you have to start solutioneering, converting your problem to the one that the Solution addresses. |
MDurkee |
May 17 2007, 02:49 PM
Post
#4
|
Newbie Group: Members Posts: 19 Joined: 27-March 07 From: Southern California (USA) Member No.: 2,350 |
If you want you could create your site using Visual Studio. It is an amazing package that allows you to create the databases right in the software, hooks to your pages, and everything. You can set up security, pages for uploading and sorting all types of information. It really is an all-in-one. You can choose the programming language you want between c++ or vbscript. . . . give it a try. You can download the Visual Studio web developer tool for free and try it out before you buy.
|
Lo-Fi Version | Time is now: 25th April 2024 - 08:01 PM |