Warning: Unexpected character in input: " (ASCII=11) state=1
am 27.09.2007 22:45:22 von MunkeyjunkeyHello,
I keep getting this error:
Warning: Unexpected character in input: " (ASCII=11) state=1 in ../
read.php on line 21
The error is happening in this code:
$query = "SELECT * FROM myfaq ORDER BY faq_sortorder DESC";
$RS = mysql_query($query) or die ("Select failed! $query");
$TPL[COUNT] = 0;
while ($row = mysql_fetch_assoc($RS)):
$TPL["FAQ"][] = array("faq_id" => $row[faq_id],
"faq_name" => $row[faq_name],
"faq_email" => $row[faq_email],
"faq_time" => $row[faq_time],
"faq_question" => $row[faq_question],
"faq_answer" => $row[faq_answer],
"faq_sortorder" => $row[faq_sortorder]);
$TPL[COUNT]++;
endwhile;
$TPL[HOWMANY] = count($TPL[FAQ]);
$TPL[DISP_FAQ] = TRUE;
Line 21: include "templates/read.tpl";
?>
And this is the code in read.tpl:
Frequently Asked Questions
if ($TPL[DISP_FAQ]): ?>
- =$count?>: =
$ROW[faq_question]?>
$count = 1; ?>
foreach ($TPL[FAQ] as $ROW): ?>
$count++; ?>
endforeach; ?>
- >Q=$count?>: =
$ROW[faq_question]?> - =$ROW[faq_answer]?>
- =$ROW[faq_name]?> =$ROW[faq_email]?>
,=$ROW[faq_time]?> (Recid:=$ROW[faq_id]?>)
$count = 1; ?>
foreach ($TPL[FAQ] as $ROW): ?>
$count++; ?>
endforeach; ?>
endif; ?>
I can't figure out what is causing this warning and how to fix it, can
somebody help me please.
Thanks
Munkeyjunkey