Hiya,
I'm trying to include the output file (output.php) into a new webpage, but all the webbrowser shows is a blanc page, with any content. I don't get it...?
<?php include("output.php"); ?>
Any good soul out there knowing what's wrong?
All info is allready stored into the mysql database though...
here's the output.php code:
Code:
1. <?
2. $username="wsb1";
3. $password="wsb2";
4. $database="wsb3";
5.
6. mysql_connect(localhost,$username,$password);
7. @mysql_select_db($database) or die( "Unable to select database");
8. $query="SELECT * FROM berichten ORDER BY titel DESC";
9. $result=mysql_query($query);
10.
11. $num=mysql_num_rows($result);
12. $ret = mysql_query($query) or die(mysql_error());
13. mysql_close();
14.
15. $i=0;
16. while ($i < $num) {
17.
18. $taal=mysql_result($result,$i,"taal");
19. $titel=mysql_result($result,$i,"titel");
20. $auteur=mysql_result($result,$i,"auteur");
21. $doc=mysql_result($result,$i,"doc");
22. $datum=mysql_result($result,$i,"datum");
23. $website=mysql_result($result,$i,"website");
24. $nieuwsbrief=mysql_result($result,$i,"nieuwsbrief");
25. $totdatum=mysql_result($result,$i,"totdatum");
26. $inhoud=mysql_result($result,$i,"inhoud");
27.
28.
29. echo
30. "<br><h2><font face=Arial color=#3366FF>$titel</font></h2>
31. <font face=Arial size=2 color=#999999>$inhoud</font></br>
32. <br><i><font face=Arial size=1 color=#222222>$auteur</font></i></br>";
33.
34. $i++;
35. }
36.
37. ?>
38.
39. <? echo $variablename; ?>