MySQL beginner |
|
Hey jongens,
ik was aant kijken bij een nieuwssysteem,, en ik heb wel 1 gevonden die ook nog aardig mooi is..
Maar nou krijg ik errors..
Warning: main(news/0.txt): failed to open stream: No such file or directory in /home/teamssx/domains/teamssx.nl/public_html/design/habbobounce/news/news.php on line 19
Warning: main(news/0.txt): failed to open stream: No such file or directory in /home/teamssx/domains/teamssx.nl/public_html/design/habbobounce/news/news.php on line 19
Warning: main(news/0.txt): failed to open stream: No such file or directory in /home/teamssx/domains/teamssx.nl/public_html/design/habbobounce/news/news.php on line 19
Warning: main(): Failed opening 'news/0.txt' for inclusion (include_path='.:/usr/local/lib/php') in /home/teamssx/domains/teamssx.nl/public_html/design/habbobounce/news/news.php on line 19
Warning : main (news /0 .txt ): failed to open stream : No such file or directory in /home /teamssx /domains /teamssx .nl /public_html /design /habbobounce /news /news .php on line 19 Warning : main (news /0 .txt ): failed to open stream : No such file or directory in /home /teamssx /domains /teamssx .nl /public_html /design /habbobounce /news /news .php on line 19 Warning : main (news /0 .txt ): failed to open stream : No such file or directory in /home /teamssx /domains /teamssx .nl /public_html /design /habbobounce /news /news .php on line 19 Warning: main(): Failed opening 'news/0.txt' for inclusion (include_path='.:/usr/local/lib/php') in /home/teamssx/domains/teamssx.nl/public_html/design/habbobounce/news/news.php on line 19
De code is:
<?php
// This page can you edit like u want. Important is to keep te config file
// included. You can edit the while loop. That's the most important thing
// for the face of the script
include('config.php');
mysql_connect($host, $user, $pass);
mysql_select_db($db);
$sql = "SELECT * FROM news";
$result = mysql_query($sql);
$num = mysql_num_rows($result);
while($row = mysql_fetch_array($result)){
echo "<font size=4><b>".$row['title']."</b></font><br><font size=1>".$row['writer']."</font>";
echo "<font size=-2> - ".$row['posted_at']."</font><br><br>";
echo "<font size=-1>";
include($row['text_url']);
echo "</font>";
}
mysql_close();
// All rights reserved
// Thomas Van der Ploeg
?>
<?php // This page can you edit like u want. Important is to keep te config file // included. You can edit the while loop. That's the most important thing // for the face of the script include('config.php'); $sql = "SELECT * FROM news"; echo "<font size=4><b>".$row['title']."</b></font><br><font size=1>".$row['writer']."</font>"; echo "<font size=-2> - ".$row['posted_at']."</font><br><br>"; include($row['text_url']); } // All rights reserved // Thomas Van der Ploeg ?>
Officiele link:
http://www.site...amp;id=927
Met Vriendelijke Groet
larssy1:p
|