Das ist der aktuelle Quelltext:
<?php
include ("jpgraph.php");
include ("jpgraph_line.php");
include ("error.inc");
include ("db.inc");
$tech03sql = "SELECT COUNT(*)
FROM newtest
WHERE Delay1 BETWEEN 41 AND 49";
var_dump($tech03sql);
// Verbindung mit DB aufbauen
if (!($connection = mysql_connect($hostname,
$username,
$password)))
die("Cannot connect");
if (!(mysql_select_db("testdata", $connection)))
showerror();
if (!($zeilen = mysql_query ($tech03sql, $connection)))
showerror();
// Schließen der Verbindung
if (!(mysql_close($connection)))
showerror();
?>