|
|
|
Author
|
Topic: Sayfalara bölmek yardım (Read 126 times)
|
turk_37
Yeni Kullanıcılar
Offline
Posts: 1
|
arkadaşlar elimde <html> <head> <script type="text/javascript"> function openComments(url) { comments = window.open(url, "Comment", "menubar=0,resizable=0,width=380,height=480") comments.focus() } </script> </head> <body> <?php include ('mysql_connect.php'); $query = "SELECT id, title, author, post, DATE_FORMAT(date, '%M %d, %Y') as sd FROM news_posts”; "; $result = @mysql_query($query); if ($result) { while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $url = 'comments.php?id='.$row['id']; echo '<table><tr><td><p><b>'.$row['title'].'</b><br /> '.$row['sd'].'<br /> Posted by : <b>'.$row['author'].'</b><br /> '.$row['post'].'<br /> <a href="javascript:openComments(\''.$url.'\')">Add new comment or view posted comments</a></p></td><td>aaa</td></tr></table>'; } } else { echo 'There are no news posts to display'; }
?> </p> </body> </html>
böyle bir kod var ben burda hableri sayfalara bölmek istiyorum her 5 haberde diğer sayfaya birazcık yardım lütfen
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
|