Jump to content

Refresh results after visiting a link


brown2005

Recommended Posts

hi i have my results displayed like

1
2
3
4

and 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
Link to comment
https://forums.phpfreaks.com/topic/34873-refresh-results-after-visiting-a-link/
Share on other sites

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]<?php
echo '<a href="'.$_SERVER['PHP_SELF'].'">Come back to this page.</a>';
?>[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.