Posts: 113
Threads: 38
Joined: Oct 2009
Reputation:
1
02-02-2010, 10:36 AM
(This post was last modified: 02-02-2010, 10:50 AM by andrewjs18.)
can someone write me a database with the following tables:
date, price, condition, year, silver, gold, weight
I think that's it. this will greatly help me as I don't know much mysql.
thanks,
Andrew
Posts: 148
Threads: 4
Joined: Oct 2009
Reputation:
8
Use phpMyAdmin?? Very simple user interface to make one, just fill in a form.
MyBB Support Team Lead
Posts: 114
Threads: 8
Joined: Apr 2010
Reputation:
2
Hey there,
If you still did not add a database and still looking for a way to do so, then login to your PHPMyAdmin and switch to the SQL tab. Run this query:
CREATE DATABASE `DbNameHere` ;
That will create a database, make sure you change the name to anything you'd like. Then run this query to create the tables:
CREATE TABLE `DbNameHere`.`DbTableNameHere` (
`date` VARCHAR(20) NOT NULL ,
`price` VARCHAR(20) NOT NULL ,
`condition` VARCHAR(20) NOT NULL ,
`year` VARCHAR(20) NOT NULL ,
`silver` VARCHAR(20) NOT NULL ,
`gold` VARCHAR(20) NOT NULL ,
`weight` VARCHAR(20) NOT NULL
)
There you go, I set them as VARCHAR (aka a text field) and set the maximum length for them as 20. You can edit the number, of course.
Good luck.
Posts: 18
Threads: 6
Joined: Mar 2011
Reputation:
0
i use my php admin it helps out alot
Posts: 160
Threads: 7
Joined: Dec 2010
Reputation:
4
I could help you, if still needed.
Pm me.