Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 83
5 members and 78 guests
batckhroom9qclr, nhghgfdumaq4pst, tamyrtpawaterda, tsevytefasl, whyjjinternetvi
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
SQL Extract table field
Old
  (#1 (permalink))
Member
 
Status: Offline
Posts: 450
Join Date: Jul 2004
SQL Extract table field - 06-05-2005, 02:01 PM

Hi guys iam looking for a sql command/line of text, to print a certain field's content from a database table, results back in the query box etc.. ?

Any ideas much appreciated
Marty


Share4Gain.com- 80% Adsense Revenue Share, no website required
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
06-05-2005, 02:15 PM

first you select the value from the database, then you can add it in the textarea by using this
Code:
<textarea>$variable_containing_the_value_to_be_printed_in_the_box</textarea>
I hope this is what you meant, and I hope it helps you


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Member
 
Status: Offline
Posts: 450
Join Date: Jul 2004
06-05-2005, 02:35 PM

Well firstly thanks for the reply, but no its not actually what I was looking for, my fault probably, didnt explain enough.

What I have a is Database with various tables, one of the tables has various fields the usually kinds, as they all do etc..

The table is just under 4mb, theres no problem exporting it as a text.sql file however iam only looking for one field within that table "User_ID"

Theres 6000+ lines along with all the other entries so I dont really want to start manually editing the file, just to get the User_Id's I was hoping there would be a SQl command that could be used within phpMyadmin , something that would extract the field data ?


Share4Gain.com- 80% Adsense Revenue Share, no website required
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
06-05-2005, 02:47 PM

Ah you want an sql file that only has the USer_ID information??
I don't think that is possible, but I can check it out.
You can always get all the user_id's out of the table with a php script and then output it on your screen.


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
06-05-2005, 02:51 PM

Nope, you can only export a table in a whole not the fields seperatly (which is actually really logic).
So if you want a list from all your user_id's I suggest printing them with a php script.


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Member
 
Status: Offline
Posts: 450
Join Date: Jul 2004
06-05-2005, 03:06 PM

Ok thanks for looking into it...


Share4Gain.com- 80% Adsense Revenue Share, no website required
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Member
 
Status: Offline
Posts: 450
Join Date: Jul 2004
06-05-2005, 04:27 PM

Oh I have been so stupid, here we go

Quote:
SELECT USER_ID
FROM table_name
Thats it, so simple :wink:


Share4Gain.com- 80% Adsense Revenue Share, no website required
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Battle Field Vietnam site killerbee Showoff 10 12-29-2004 08:33 PM
Adding a field to the My Account Scott Nuke 6.5 to 6.9 - Modules 4 05-14-2003 05:11 PM
table adjustment ferhanz Open topics 0 05-12-2003 03:49 AM
Can't Extract superman42287 Purged Topics 2 02-25-2003 06:10 AM
How to add a table? zlaxzzor Purged Topics 3 11-21-2002 07:59 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31