Hello,
 
here is a news table:
 
id - date - title - par1- text body
 
For example, here is the code for displaying latest 10 entries:
 
select * from newsa ORDER BY id DESC LIMIT 10
 
while ($row = mysql_fetch_ array($query) ) {
echo"<p> " . $row['date'] . $row['title' ] . "</p>". 
"<p> " . $row['par1'] ."</p>"."<a href='testdisplay2. php'>(more...)</a>"  ; }

How do you make "(more....)" link you see above which will come up with each 
separate result  be an automatically updated link to that generic php / sql 
query page that will bring up the correct article? right now as you 
see, (more...) link is only pointing to a page called testdisplay2, which is 
not good, because it is the same for all results that come up. 
 
Or another example for the same kind of problem: lets say there is a search 
query that searches the database for certain keywords and brings up the 
headings of articles that contain that search word...Then I want user to click 
on that heading and be directed to the php page that will automatically display 
that relevant article..
There is no separate page for each entire article. Just one generic php page 
that generates entire article once it is called. If I had a separate page for 
each entire article then it would be easy but that option is much more time 
consuming. 
In other words, how will that one generic php page whihc display the entire 
article, "know" which article heading has been clicked in the first page and 
generate the corresponding article?
 
Thanks in advance...


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

[Non-text portions of this message have been removed]

Reply via email to