The php-file:
<?php
include("../include/db.php");
$result = mysql_query("SELECT * FROM table") or die (mysql_error());
?>
The include-file:
<?php
mysql_connect("localhost");
mysql_select_db("blabla");
?>
I tried removing the <?php and ?> tags in the include file, woth the result that the mysql functions are outputted as text on the page.