Results 1 to 2 of 2

Thread: Go TO And Replace (MySql)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Go TO And Replace (MySql)

    I have table it's name Members contain this field (ID,username,age,password)

    How can I go to the recode that it's ID=4 and replace the (username,age,password) with other values

    Thanks

  2. #2
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    like the SQL statement?

    $theSQLstatement="UPDATE Members SET username="whatever", age=\"$whatever\", password=\"$passwordInfo\" WHERE ID = '$theIDtoUpdate'"

    then run it through a mysql_query

    mysql_query($theSQLstatment);

    this is of course after you've logged in and established a connection with the mysql database.

Posting Permissions

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



Click Here to Expand Forum to Full Width