![]() |
|
#1
|
|||
|
|||
newbie needs helpI am using php to dynamically list a series of links along with a short description of the article which the link opens in a new wondow. I have a SQL database which I am working with through phpMyAdmin and everything is working great...
- EXCEPT: I have a php code that limits the amount of links shown on the page at a time. When you enter the page where the links are, only 3 of them should appear at a time. If there are more than that in the database a "Next Page... " link appears which will merely replace the current 3 links with the next 3, and so on. It all works well at first - ie. only 3 links appear, they are in the correct order and they link correctly. BUT when I click on "Next Page... " - the 3 current links are replaced with only one link which is actually the very first link in the table. Instead it should be the next 3 links... PLEASE HELP! Here is the code: PHP Code:
Last edited by JdS : 05-Jun-2004 at 09:42.
Reason: Please enclose PHP code in [php] & [/php] for syntax highlighting
|
|
#2
|
|||
|
|||
please explain your sciptIf you want more help with your script you will have to clarify each stage.
I am not very experienced in PHP and MSQL but if you answer my questions maybe somebody will see your problem. please fill in your answers inside the comment markers. PHP Code:
Maybe you should rewrite it if nobody can figure out your problems. Here are some suggestions. Your script is confusing. You are doing PHP and MSQL operations the same time separate them. Create another table with data in correct format. Fill an array with all data. Then manipulate the arrary. This will be easier to use and has ONE call to MYSQL. Hope you get a fix JK Last edited by JUNK KED : 09-Jun-2004 at 21:59.
Reason: adding text
|
|
#3
|
|||
|
|||
figured it out - thanksfigured it out - thanks
|
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| linked lists, newbie needs help | moltarim | C Programming Language | 4 | 06-May-2004 12:32 |
| newbie using Sam's series | Skampy | C++ Forum | 3 | 06-Mar-2004 19:51 |
| Grouping data from MySQL with PHP - Newbie question. | giobbi | MySQL / PHP Forum | 12 | 27-Feb-2004 01:34 |
| (read/write file) newbie need help plz | momotx | C Programming Language | 6 | 28-Jan-2004 14:40 |
| [Linux] Top newbie questions. | JdS | Computer Software Forum - Linux | 3 | 22-Jan-2004 13:00 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The