Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Possible to update data in my website's DB (mysql)

    Hi,

    I am would like to know if any way possible to update data in my website's data base (mysql). my site is located in shared hosting so the permission of my user is available to connect from localhost only.

    Any idea ?

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You want to update through a webpage or something? You didn't really say _how_ you want to update it.

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by naruponk View Post
    Hi,

    I am would like to know if any way possible to update data in my website's data base (mysql). my site is located in shared hosting so the permission of my user is available to connect from localhost only.

    Any idea ?
    Install PHPMyAdmin on the server. Just make sure you use an obscurely named or password protected directory to prevent bots from brute forcing it.

  • #4
    Regular Coder djh101's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    614
    Thanks
    48
    Thanked 64 Times in 64 Posts
    mysql_query("UPDATE example SET field='x' WHERE field='y'");
    "Yeah science!"
    Online Science Tools


  •  

    Posting Permissions

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