Da tut sich nichts. Habe hier mal noch die andere Datei namens /Connections/localhost.php angehängt (Daten stimmen im Original)
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "XXX";
$username_localhost = "YYY";
$password_localhost = "ZZZ";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Hab echt keine Ahnung, wo da der Fehler liegt...
Und dann hab ich da noch ne Datei, die mir Inhalte aus der Datenbank (ich habe einen Datensatz probehalber eingegeben) anzeigen soll, doch auch die meldet Fehler:
test.php
<?php require_once('Connections/localhost.php'); ?>
<?php
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_localhost, $localhost);
$query_Recordset1 = "SELECT * FROM namen ORDER BY order ASC";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $localhost) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Jahrbuchfotos 2006 - Übersicht</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<TD>Klasse/Kurs</TD>
<td>Anzahl der Schüler</td>
<td>Alle da?</td>
<td>4. Reihe</td>
<td>3. Reihe</td>
<td>2. Reihe</td>
<td>1. Reihe</td>
<td>Es fehlen</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['klasse']; ?></td>
<td><?php echo $row_Recordset1['anzahl']; ?></td>
<td><?php echo $row_Recordset1['komplett']; ?></td>
<td><?php echo $row_Recordset1['reihe4']; ?></td>
<td><?php echo $row_Recordset1['reihe3']; ?></td>
<td><?php echo $row_Recordset1['reihe2']; ?></td>
<td><?php echo $row_Recordset1['reihe1']; ?></td>
<td><?php echo $row_Recordset1['missing']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
Wäre echt nett, wenn ihr mir dabei etwas behilflich sein könntet
THX