DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
Quick Search:  
Register Now! Welcome to Dnforum.com You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.
Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2007, 01:24 AM   #1 (permalink)
Platinum Lifetime Member
 
Domain Epidemic's Avatar
 
Last Online: Today 11:32 AM
iTrader: (4)
Join Date: Jul 2006
Posts: 335
DNF$: 828
Location: California
Country:


Need phpmyadmin/mysql help.

Hello,

New to php/mysql and phpmyadmin.

I need to change a fields value for muliple records.

Example: it is a checkbox/clickable table "0" = not active and "1" = active.

I would imagine a fairly simple task. Any link to the answer or assistance would be greatly appreciated.

C.

Sorry if the terminology is poor!
__________________
Visit Doughmainz.com for your after market domain name needs.
Offers taken for: HeelBone.com - NewsEditions.com - Saneness.com - VidInformer.com - NYMZ.com - EquityContracts.com - InkTyme.com
Domain Epidemic is offline   Reply With Quote
Old 01-01-2008, 07:39 AM   #2 (permalink)
Platinum Lifetime Member
 
Last Online: 05-12-2008 05:14 PM
iTrader: (2)
Join Date: Dec 2007
Posts: 153
DNF$: 830
Location: UK
Country:


not really sure what you're after. do you want the SQL or some PHP code?

In SQL you can say something like

UPDATE tablename SET field="value" WHERE otherfield="somevalue";

which would update all rows where "otherfield" is "somevalue".

explain exactly what you want to see happen on the screen.
sunja is offline   Reply With Quote
Old 01-01-2008, 08:35 AM   #3 (permalink)
Titles are overrated. :)
 
draggar's Avatar
DNF Verified Member
Verified Member
 
Name: Ed
Last Online: Today 11:22 PM
iTrader: (12)
Join Date: Dec 2007
Posts: 1,624
DNF$: 189
Location: South Florida
Country:


PHPMyAdmin is a "lazy man's' administrative tool for SQL databases, some registrars use it (and I use it with my registrar).

There are some good books out there. I haven't found anything "great" but "Mastering PHPMyAdmin for Effective MySQL Management' by Marc Delisle isn't too bad. Most of the ones I've found are quite technical. :(
__________________
Ask me about my Domain Management Tool! Only $5!
What's on Draggar's mind?
draggar is online now   Reply With Quote
Old 05-08-2008, 02:53 PM   #4 (permalink)
Gold Lifetime Member
 
Last Online: 05-08-2008 02:56 PM
iTrader: (0)
Join Date: Mar 2006
Posts: 2
DNF$: 100
Location: Waverly, OH


Quote:
Originally Posted by Domain Epidemic View Post
Hello,

New to php/mysql and phpmyadmin.

I need to change a fields value for muliple records.

Example: it is a checkbox/clickable table "0" = not active and "1" = active.

I would imagine a fairly simple task. Any link to the answer or assistance would be greatly appreciated.

C.

Sorry if the terminology is poor!
Well, depends on what you're asking, really. If you want to change that particular field for all the records in your database, it would probably be easier to run a SQL command. IE:


Code:
UPDATE tablename SET fieldname='whatever value you want changed'

That will change all the records in the table you choose with the field name of what you choose to the value in the quotes. Change the tablename to whatever table you want and fieldname to the field you want, and the stuff in quotes to the value you want. You can run that directly in phpMyAdmin in the SQL box. Make sure you are in the appropriate database section before running the command. Optionally, you can append

Code:
WHERE fieldname='1'
This will change the values you want from above where the name matches with the field name with the WHERE clause. 1 is obviously there as a placeholder, that's where you'll want to put your limiter. (of which, LIMIT is another clause, but not what you're looking for right now, I don't believe)

I hope this helps you out. I tried to work with the specifics you gave me, and this is as abstract as I could get lol.





EDIT: Totally didn't see the date on this, I apologize.
Anzu is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

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


All times are GMT -4. The time now is 11:24 PM.
Copyright @2001-2008 DNForum.com