Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-09-2008
Member
 
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.
Reply With Quote
  #2  
Old 24-09-2008
Member
 
Join Date: May 2008
Posts: 2,293
Try this:

mysql_query ( "UPDATE $ table SET login ="'.$ login. '", pass = "pass" WHERE login ="'.$ login .'"');
Reply With Quote
  #3  
Old 24-09-2008
Member
 
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 ...
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Update problem bdd!"
Thread Thread Starter Forum Replies Last Post
Microsoft Security Essentials definitions update problem: virus & spyware definitions update failed; error code: 0x80080005 OctAvio2011 Networking & Security 6 18-10-2010 04:09 PM
Problem with JRE 6 update Ucchal Windows Software 6 04-08-2010 11:07 AM
Toshiba satellite L305D-S5893 shutdown problem or bios update problem Colter Portable Devices 4 10-04-2010 04:19 PM
AVG 8.0 update problem LAMONT D AntiVirus Software 6 05-02-2009 10:11 AM


All times are GMT +5.5. The time now is 05:01 AM.