Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
MySQL Databases
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Talk PC Add To Bookmarks
MySQL Databases
PostPosted: 05/02/2007 3:28 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
Hey NR.
Sorry I can't help out right now, but I do need your expert help Very Happy

Here's what I want to do:
    Create a database with the tables: Name, Comments.
    Create a form for a website that will inject those 2 value into the database.


Think you can help?

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/02/2007 3:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:51 PM
Location: St Pete, FL
peace.gif
Do you know what fields will be in the two tables and the types, keys, and default data should be???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: MySQL Databases
PostPosted: 05/02/2007 3:46 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
Well not really - I haven't thought about any of that.

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/02/2007 3:57 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
Well could you explain the 2 field thingys?
Oh man I'm forgetting some stuff *smacks self*
Yah, I'd just like something that can inject a name and their comments into a database from a form, and display how many entries there are on another page.

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/03/2007 12:22 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
OK, I have a value for Name and for Comments.
Something like TEXT VARCHAR (well, VARCHAR anyways).

Hope that help.

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/03/2007 1:56 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:51 PM
Location: St Pete, FL
peace.gif
If you've already created your database, then you can run a query like this to create a table replacing new_table_name with the name that you want for the table...

Code:
CREATE TABLE new_table_name (
   record_id mediumint(8) NOT NULL auto_increment,
   username varchar(255),
   comments text
   PRIMARY KEY (record_id)
);

The record_id would be the unique key for each record and would be automatically assigned.  The username can hold up to 255 characters, and the comment field can hold as much as you want to store in the field...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: MySQL Databases
PostPosted: 05/03/2007 11:32 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
And what about a form to input a username into the table, and another to display how many records there are in the table?

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/03/2007 2:56 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:51 PM
Location: St Pete, FL
peace.gif
Oh, you're trying to write everything from scratch?  Is this going to be integrated in with your forum or is this going to run completely separate???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: MySQL Databases
PostPosted: 05/03/2007 11:36 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 11:51 PM
Location: SE England
greatbrE.gif
It's going to be separate.

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: MySQL Databases
PostPosted: 05/04/2007 4:50 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:51 PM
Location: St Pete, FL
peace.gif
If it won't be included with the forum software, then it will be necessary to write the code to connect to and access the database.  I haven't had to ever do that with php, so it would take some research to recreate the database access...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Talk PC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.062s (PHP: 69% - SQL: 31%) - SQL queries: 57 - GZIP disabled - Debug on