Gang67
|Jump out gang, we jump out those vehicles|
- May 5, 2017
- 303
- 54
Hello, when I make a new news article it just adds on to each other and doesn't make it's own page.
I would like it to create a page for each article instead of it adding them to the same page each time
Here is my php so far
I would like it to create a page for each article instead of it adding them to the same page each time
Here is my php so far
PHP:
<div id="news">
<div id="news-top">
<p class="top-titles">News</p>
</div>
<div class="inside-news" id="style-3">
<?php
$row1 = mysql_query("SELECT title,longstory,image,author FROM cmsnews");
if (mysql_num_rows($row1) > 0)
{
while($row = mysql_fetch_assoc($row1)) {
?>
<div id="pos-img">
<img src='<?php echo $row['image']; ?>' width="550" height="175" >
</div><br>
<div id="pos-news">
<?php echo $row['longstory']; ?>
</div>
<?php }
} ?>
</div>
</div>