Forum Moderators: coopster
<?xml version="1.0" encoding="iso-8859-1"?>
If I comment this line out, no parse error.
The entire block follows:
<?php require_once('Connections/connTrio.php');?>
<?php
$maxRows_rs_Comment = 10;
$pageNum_rs_Comment = 0;
if (isset($_GET['pageNum_rs_Comment'])) {
$pageNum_rs_Comment = $_GET['pageNum_rs_Comment'];
}
$startRow_rs_Comment = $pageNum_rs_Comment * $maxRows_rs_Comment;
mysql_select_db($database_connTrio, $connTrio);
$query_rs_Comment = "SELECT * FROM comments ORDER BY LAST_NAME ASC";
$query_limit_rs_Comment = sprintf("%s LIMIT %d, %d", $query_rs_Comment, $startRow_rs_Comment, $maxRows_rs_Comment);
$rs_Comment = mysql_query($query_limit_rs_Comment, $connTrio) or die(mysql_error());
$row_rs_Comment = mysql_fetch_assoc($rs_Comment);
if (isset($_GET['totalRows_rs_Comment'])) {
$totalRows_rs_Comment = $_GET['totalRows_rs_Comment'];
} else {
$all_rs_Comment = mysql_query($query_rs_Comment);
$totalRows_rs_Comment = mysql_num_rows($all_rs_Comment);
}
$totalPages_rs_Comment = ceil($totalRows_rs_Comment/$maxRows_rs_Comment)-1;
?>
<?xml version="1.0" encoding="iso-8859-1"?>
Code Sentinel has the right answer: you will have to echo the XML prolog to make it work.
<?php echo '<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n';?>