Results 1 to 3 of 3

Thread: Update problem bdd!

  1. #1
    Join Date
    May 2008
    Posts
    30

    Update problem bdd!

    Hello,
    Trying to update my SQL database.
    When I use the following query everything works:
    mysql_query ( "UPDATE table SET $ login = 'Admin', pass = 'Password' WHERE login = 'Me");

    But with the following query, this does not work:
    mysql_query ( "UPDATE table SET $ login = '$ login' pass = 'pass' WHERE login =' $ login");

    Why ??? !!
    Thank you for helping me.

  2. #2
    Join Date
    May 2008
    Posts
    2,297
    Try this:

    mysql_query ( "UPDATE $ table SET login ="'.$ login. '", pass = "pass" WHERE login ="'.$ login .'"');

  3. #3
    Join Date
    May 2008
    Posts
    30
    Thank you,
    But your code does not work.
    I have the following error:
    Parse error: parse error, unexpected T_STRING

    So I tried to change it, but the outcome is identical:
    mysql_query ( "UPDATE $ table SET login ="".$ login." pass = "" pass "" WHERE login ="".$ login .""');

    I understand it ...

Similar Threads

  1. Replies: 6
    Last Post: 18-10-2010, 04:09 PM
  2. Problem with JRE 6 update
    By Ucchal in forum Windows Software
    Replies: 6
    Last Post: 04-08-2010, 11:07 AM
  3. Replies: 4
    Last Post: 10-04-2010, 04:19 PM
  4. AVG 8.0 update problem
    By LAMONT D in forum AntiVirus Software
    Replies: 6
    Last Post: 05-02-2009, 10:11 AM

Tags for this Thread

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
  •  
Page generated in 1,713,922,541.92764 seconds with 16 queries