Reply to Warning: Unexpected character in input: " (ASCII=11) state=1

Your name:

Reply:


Posted by munkeyjunkey86 on 09/27/07 20:45

Hello,
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:

<h1>Frequently Asked Questions</h1>
<p>&nbsp;</p>

<? if ($TPL[DISP_FAQ]): ?>
<ul class="list">
<? $count = 1; ?>
<? foreach ($TPL[FAQ] as $ROW): ?>
<li class="listquestion"><?=$count?>: <a href="#<?=$count?>"><?=
$ROW[faq_question]?></a> </li>
<? $count++; ?>
<? endforeach; ?>
</ul>

<ul class="item">

<? $count = 1; ?>

<? foreach ($TPL[FAQ] as $ROW): ?>
<li class="question"><a name=<?=$count?>>Q<?=$count?>: <?=
$ROW[faq_question]?></a></li>
<li class="answer"><?=$ROW[faq_answer]?></li>
<li class="submittedby"><?=$ROW[faq_name]?> <a href="mailto:<?=
$ROW[faq_email]?>"><?=$ROW[faq_email]?></a>
,<?=$ROW[faq_time]?> (Recid:<?=$ROW[faq_id]?>)
</li>
<? $count++; ?>
<? endforeach; ?>
</ul>

<? endif; ?>

I can't figure out what is causing this warning and how to fix it, can
somebody help me please.
Thanks
Munkeyjunkey

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация