Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 4 of 4
  1. #1
    Platinum Lifetime Member
    Domain Epidemic's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    438
    DNF$
    1,402
    Bank
    0
    Total DNF$
    1,402
    Donate  

    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!
    Accepting Offers: *Please contact if interested*
    EventsFree.com - BadAssCandles.com - CardPouches.com - VidiGames.com
    CandleMagik.com - ConceptMustang.com - FlexCellular.com - TubeScrew.com

  2. #2
    Platinum Lifetime Member

    Join Date
    Dec 2007
    Location
    UK
    Posts
    234
    DNF$
    1,578
    Bank
    0
    Total DNF$
    1,578
    Donate  
    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.

  3. #3
    þórr mjǫlnir
    draggar's Avatar
    Join Date
    Dec 2007
    Location
    South Florida
    Posts
    12,874
    Country

    Czech Republic
    DNF$
    6,974
    Bank
    116,559
    Total DNF$
    123,533
    Donate  
    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. :(
    Save the wolves - join The Wolf Army today!
    Please follow the rules or suffer the wrath of Thor's Hammer.

  4. #4
    Gold Lifetime Member

    Join Date
    Mar 2006
    Location
    Waverly, OH
    Posts
    2
    DNF$
    193
    Bank
    0
    Total DNF$
    193
    Donate  
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com