Can´t you use
include ('mysqlcondb.php');
I tryed this and of course it did´t work.
<html>
<head>
<TITLE>database</TITLE>
<link href="style1.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body><center>
<div id="latest-post-wrap">
<div id="latest-post" class="post">
<p class="byline"></p>
<h1 class="title"><a href="#">database</a></h1>
<div class="entry">
</center>
<?php
$mysqli = new mysqli(myhost,myusernamne,mypassword,'bikes');
// Make a MySQL Connection
$sql = "SELECT m.modell
, m.antal
, o.total
, ROUND(o.total/m.antal*100, 1) as pc
FROM modeller m
LEFT JOIN
(
SELECT mc as modell
, COUNT(*) as total
FROM owner
GROUP BY modell
) o USING (modell)
ORDER BY modell";
$res = $mysqli->query($sql); // execute the query
while (list($model, $antal, $total, $pc) = $res->fetch_row()) {
// list the results
echo "We have $total pcs $model ( {$pc}% ) of produced $antal pcs in the database<br>";
}
?>
<?php
## close connection!
mysql_close($connect);?>
test
</html>