|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Poxy Script
RIGHT: here goes
<?php require(dirname(__FILE__) . '/' . '../' . '../' . 'backend.php'); opentable(); switch ( $display ) { case "5": $display = "5"; $query = "SELECT * FROM guide ORDER BY band"; break; case "10": $display = "10"; $query = "SELECT * FROM guide ORDER BY blurb"; break; case "all": $display = "all"; $query = "SELECT * FROM guide ORDER BY venue"; break; default: $display = "5"; $query = "SELECT * FROM guide ORDER BY id"; break; } ?> Display how many messages? <a href="<?$PHP_SELF['PHPSELF'];?>?display=5">5</a> <a href="?display=10">10</a> <a href="?display=all">all</a> <? closetable(); ?> ...its a page module for a portal system its just for testing but ive had this prob before...i want it the use to click on a link and then the page is supposed to reload in ths same script but it always reloads the index page! |
|
#2
|
|||
|
|||
|
that script is being loaded in the index file right?
you can only refresh "windows/frames" not scripts. or do you mean u've got a file called "script.php" and when u click the link it goes to index.php ? try not filling in the self var .. just use a link <a href="?display=5">asdf</a> should work anyhow i think |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Poxy Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|