Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
News Article Issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Gang67" data-source="post: 423343" data-attributes="member: 75598"><p>Hello, when I make a new news article it just adds on to each other and doesn't make it's own page.</p><p><img src="https://image.prntscr.com/image/zsngZNOGTVK-iMXA7Me2Tg.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>I would like it to create a page for each article instead of it adding them to the same page each time</p><p>Here is my php so far</p><p>[PHP] <div id="news"></p><p> <div id="news-top"></p><p> <p class="top-titles">News</p></p><p> </div></p><p> <div class="inside-news" id="style-3"></p><p> <?php</p><p></p><p></p><p> $row1 = mysql_query("SELECT title,longstory,image,author FROM cmsnews");</p><p></p><p> if (mysql_num_rows($row1) > 0)</p><p> {</p><p> while($row = mysql_fetch_assoc($row1)) {</p><p></p><p>?></p><p> <div id="pos-img"></p><p> <img src='<?php echo $row['image']; ?>' width="550" height="175" ></p><p> </div><br></p><p> <div id="pos-news"></p><p> <?php echo $row['longstory']; ?></p><p> </div></p><p> </p><p><?php }</p><p></p><p> } ?></p><p> </div></p><p> </div>[/PHP]</p></blockquote><p></p>
[QUOTE="Gang67, post: 423343, member: 75598"] Hello, when I make a new news article it just adds on to each other and doesn't make it's own page. [IMG]https://image.prntscr.com/image/zsngZNOGTVK-iMXA7Me2Tg.png[/IMG] 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>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
News Article Issue
Top