You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 55 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - hm....SQL table help. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
heffie
Nuke Soldier
Nuke Soldier


Joined: Jul 02, 2003
Posts: 29


PostPosted: Thu Jul 17, 2003 8:25 pm Reply with quoteBack to top

What I need to do is this....I need to modify the existing nuke_encyclopedia table. What I want to do is simply add a text file to that table. I figured out how to do it with PHPMyAdmin, but I get an error telling me the command isn't yet implemented into MySQL. There's gotta be a relatively simple way to do it, I'm just not SQL savvy enough to figure it out. Otherwise, even with a mod Raven sent me, I'm looking at at least a couple month's work getting all these in there. Shocked

Is there a way, perhaps, to export the existing table to a txt file, add the lines I want, then export the txt file back into MySQL as a table? Or am I smoking too much?
Find all posts by heffieView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri Jul 18, 2003 12:16 am Reply with quoteBack to top

Not sure I understand what you're doing/needing. Do you want to add a column to the table? If so, make it TYPE TEXT.

You can use phpMyAdmin to EXPORT the table contents. Then, modify the entry(s) as desired. Then, after backing up the table, EMPTY the table. Then, using the SQL tab, INSERT the entry(s) back. Or, if you want the changes in addition to what is alread in the table, don't EMPTY the table, just INSERT the new entry(s). Clear as mud?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
heffie
Nuke Soldier
Nuke Soldier


Joined: Jul 02, 2003
Posts: 29


PostPosted: Fri Jul 18, 2003 11:30 am Reply with quoteBack to top

heh.....about, yeah. Makes sense now, though. Guess maybe I should be more specific......

I have a text file, of all my word definitions, laid out like this:

fader - a control on a mixing board, used to control the input level for a channel.

channel - a single input section of a mixing board, or the left or right signal in a stereo recording

etc, etc, but alphabetised. Putting this info in, one definition at a time, adds the text to the nuke_encyclopedia table. So, I should be able to export that table, then just copy and paste all 2000+ definitions? Then, just re-insert the now modified text?

I'm definitely leaving your mod up, I like the idea of users being able to add definitions, especially in other languages. Just looking for a fast, relatively easy, way to get the encyclopedia up and running.

I'll try what you suggested, if it works, you'll probably hear the cries of joy all the way over there.
Find all posts by heffieView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Fri Jul 18, 2003 11:35 am Reply with quoteBack to top

If that does not work, and I don't think it will, you could turn your text file into a tab/comma delimited file and then use phpMyAdmin to load the file and voila! You're done.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff

Last edited by Raven on Fri Jul 18, 2003 5:30 pm; edited 1 time in total
Find all posts by RavenView user's profileSend private messageVisit poster's website
heffie
Nuke Soldier
Nuke Soldier


Joined: Jul 02, 2003
Posts: 29


PostPosted: Fri Jul 18, 2003 5:26 pm Reply with quoteBack to top

I'll try that first, I think. The other way seems relatively easy, just alot of formatting. I'll work on it tonight, let you know how it goes.

I'm still learning the ins and outs of SQL, really, this is one of the things I put off learning, of course...... *edit* Tried doing a delimted text file, phpMyAdmin gives me an SQL syntax error. The other option, to add data from a text file, gives me an error that says that the command isn't available in my current version of SQL......argh. Gotta be something I'm doing....I used Excel to import the text file into a spreadsheet, then saved as a tab-delimted file. Also tried as comma-delimted. Guess I need a different program?
Find all posts by heffieView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.399 Seconds - 110 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::