Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
OOP | Querying and show updated value in same file
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RastaLulz" data-source="post: 368145" data-attributes="member: 1"><p>I assume your issue is that that you're accessing a value that has already been gathered (via a select query) and stored to a variable before you've gone ahead and ran a query to update the ticket? Obviously the value isn't going to to automagically change in that case. It's hard to specifically solve your issue without seeing how the ticket is being accessed on the client, and whether the solution would be to simply access that value and set it to the new one (when you fire the update query), or to have a method in a class called getTicket(), which would access the newly generated ticket in both the update and on the client, as opposed to querying the old ticket that was probably initialized early in the app's boot.</p></blockquote><p></p>
[QUOTE="RastaLulz, post: 368145, member: 1"] I assume your issue is that that you're accessing a value that has already been gathered (via a select query) and stored to a variable before you've gone ahead and ran a query to update the ticket? Obviously the value isn't going to to automagically change in that case. It's hard to specifically solve your issue without seeing how the ticket is being accessed on the client, and whether the solution would be to simply access that value and set it to the new one (when you fire the update query), or to have a method in a class called getTicket(), which would access the newly generated ticket in both the update and on the client, as opposed to querying the old ticket that was probably initialized early in the app's boot. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
OOP | Querying and show updated value in same file
Top