Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Catching php mysql variable in javascript

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Apr 10, 2014 at 13:59 vote accept Community Bot
Apr 10, 2014 at 9:21 comment added cptnk @pebbl I prob misunderstood then. I still think he shouldve used some hidden fields and extract the bussiness logic and his view logic. This is just messy and unclean imo. He could atleast use hidden fields or whatnot to store the information and retrieve it from normal getElementById etc.
Apr 10, 2014 at 8:25 answer added Pebbl timeline score: 0
Apr 10, 2014 at 7:46 comment added Pebbl @cptnk AJAX/XHTTP is not for requesting one singular variable from the server -- there is no need to add an extra request into the mix when you can easily json_encode or echo a simple structure. True AJAX could be used to nicely bring down a large amount of data (that isn't required upon page initialisation), but this does not seem to be the case here.
Apr 10, 2014 at 7:40 comment added cptnk guys pls... this is what ajax is for. blog.teamtreehouse.com/…
Apr 10, 2014 at 7:36 answer added Vishwanath Tadahal timeline score: 0
Apr 10, 2014 at 7:35 answer added GoalDone timeline score: 0
Apr 10, 2014 at 7:32 answer added Nelson Benítez León timeline score: 2
Apr 10, 2014 at 7:32 comment added Javid Explain more about this is not working. Do you get any error? Perhaps SQL error or even convert array to string error etc.
Apr 10, 2014 at 7:31 answer added Helpful timeline score: 0
Apr 10, 2014 at 7:29 comment added dkasipovic You can add echo mysql_error() after $idzapytania = mysql_query($zapytanie); to see if there is an error. Can you do that and see?
Apr 10, 2014 at 7:29 comment added Ben What type is times?
Apr 10, 2014 at 7:28 comment added Shankar Narayana Damodaran But this is not working. .. Care to explain ? What did that echo give ?
Apr 10, 2014 at 7:27 history asked user3370412 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /