Change the last line with this
<a href=' whole article.php?id=<? $row['id'] ?>'>"."(Read more...)"."</a>

because you using echo. the double quote in html sintaks must be error. you 
must use single quote only.or don't use any quote.


Tedit kap <[EMAIL PROTECTED]> wrote:                             Hi all,
 The query below brings three results. I also want a link at the end of each 
result for "Read More" to be updated automatically based on the id of the 
displayed reult. Then I will get that id in another page, to display the 
corresponding article. 
 table is like this: id, date, title, par1
 The problem is the syntax of the last line. It is not working. I need to 
transfer this id to another page. Can anybody tell me what is the syntax error 
here? Or if this is not good, how can I achieve transferring this id when 
clicked to another page?
 The rest of the code was working, displaying three results properly, before 
the last line was there. But I need that auto updated link too. 
 $query=mysql_query("select * from newsa ORDER BY id DESC LIMIT 3");
 while ($row = mysql_fetch_array($query)) 
 {
 echo"<p class='newstitle1'>" . $row['date']."<br/>". $row['title'] . "</p>". 
 "<p id=newstext1>" . $row['par1'] ."</p>".
 "<a href=" whole article.php?id=<?= $row['id'] ?>">"."(Read more...)"."</a>" ; 
} 
 
 __________________________________________________________
 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]
 
 
     
                                       




       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

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

Reply via email to