General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 5th, 2003, 03:19 AM
diamondazza diamondazza is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 4 diamondazza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old November 5th, 2003, 09:58 AM
Relax Relax is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 43 Relax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Poxy Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway