Jump to content


Photo

update database on textbox change


  • Please log in to reply
3 replies to this topic

#1 mattichu

mattichu

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts
  • LocationUK

Posted 19 May 2013 - 03:36 PM

after much googling I still can find a solution :(

 

Is it possible to update an sql database with the textbox value when its changed or no longer in focus?

 

cheers!



#2 Jessica

Jessica

    This is not my name.

  • Gurus
  • 8,982 posts
  • LocationDallas, TX
  • Age:26

Posted 19 May 2013 - 03:38 PM

Yes.
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.

How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq

Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!

#3 mattichu

mattichu

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts
  • LocationUK

Posted 19 May 2013 - 05:47 PM

nice one, and how would I go about doing this?  :happy-04:



#4 Xaotique

Xaotique

    Advanced Member

  • Members
  • PipPipPip
  • 558 posts
  • LocationPennsylvania, United States
  • Age:21

Posted 19 May 2013 - 06:49 PM

You gave no information, and no code.  What do you expect?

 

If you're not using JQuery, then Google addEventListener() and Ajax.  If you're using JQuery, then look up $.blur() and probably $.post().






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com