Web サイトの基本的なメッセージング システムをコーディングしようとしています。送信と受信をセットアップしましたが、何らかの理由で受信トレイで html が表示されなくなりました。ページの途中で表示され、何らかの理由で停止します。入力した場合のように基本的なhtmlも表示されません
こんにちは
それは現れません。こんなこと今までなかったので困っています。 </table>
<p>Hello</p><!--THIS WILL DISPLAY-->
<?php
///////////End take away///////////////////////
// SQL to gather their entire PM list
include_once ('../../mysql_server/connect_to_mysql.php');
$sql = mysql_query("SELECT * FROM messaging WHERE to_id='$my_id' AND recipientDelete='0' ORDER BY id DESC LIMIT 100");
while($row = mysql_fetch_array($sql)){
$date = strftime("%b %d, %Y",strtotime($row['time_sent']));
if($row['opened'] == "0"){
$textWeight = 'msgDefault';
} else {
$textWeight = 'msgRead';
}
$fr_id = $row['from_id'];
// SQL - Collect username for sender inside loop
$ret = mysql_query("SELECT * FROM myMembers WHERE id='$fr_id' LIMIT 1");
while($raw = mysql_fetch_array($ret)){ $Sid = $raw['id']; $Sname = $raw['firstname']; }
?>
<p>Hello</p><!--THIS WON'T DISPLAY-->
<table width="96%" border="0" align="center" cellpadding="4">
どんな助けでも大歓迎です..
編集:
最初の while ループは、テーブルの直後で閉じます。最初の while ループの外側はすべて表示されますが、while ループの内側はすべて表示されません。