brown2005 Posted January 19, 2007 Share Posted January 19, 2007 hi i have my results displayed like1234and each number u click on it opens a page in new window, but wat i want to do is once i click a number i wont it to refresh the $sql query.i think i will need javascript, but im not sure, but how do i do it please cause i am not good with javascript.thanks richard Quote Link to comment https://forums.phpfreaks.com/topic/34873-refresh-results-after-visiting-a-link/ Share on other sites More sharing options...
RonnyZenn Posted January 19, 2007 Share Posted January 19, 2007 if i understood correct what you mean, then you need to use ajax(simply javascript). better if you check some beginner ajax tutorials for XMLRequest so on. Quote Link to comment https://forums.phpfreaks.com/topic/34873-refresh-results-after-visiting-a-link/#findComment-164397 Share on other sites More sharing options...
Nameless12 Posted January 19, 2007 Share Posted January 19, 2007 You can set <a href=""> to open in a new window so you just put a link in your results area and you are set Quote Link to comment https://forums.phpfreaks.com/topic/34873-refresh-results-after-visiting-a-link/#findComment-164679 Share on other sites More sharing options...
micmania1 Posted January 19, 2007 Share Posted January 19, 2007 if you need to refresh the query because of changes, you can just repeat the query later in the script.Instead of refreshing why not just create a link to itself?[code]<?phpecho '<a href="'.$_SERVER['PHP_SELF'].'">Come back to this page.</a>';?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/34873-refresh-results-after-visiting-a-link/#findComment-164697 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.