20-11-2004, 22:16
|
|
|
חבר מתאריך: 22.09.04
הודעות: 217
|
|
חייב עזרה בקוד הבא..
יש בעיה בקוד הבא..זאת מערכת תגובות לאתר אבל יש בעיה קטנה את ההודעות החדשות הוא מציג למטה ולמטה..כאילו ההודעה הכי ישנה למעלה וההודעה הכי חדשה הכי למטה איך עושים שזה יהיה הפוך? יעני שההודעות החדשות יהיו למעלה..
הנה הקוד:
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="he">
<TITLE>עמוד המשוב של נקסט</TITLE>
<script language="javascript">
function send_replay(){
javascript:window.open('send_massege.php','replay' ,'toolbar=0,location=0,status=0,menubar=0,scrollba rs=0,resizable=0,width=300,height=490')
}
</script>
</HEAD>
<body bgcolor="#F7F7FF" text="#0058B2" link="#000080" alink="#000080" vlink="#000080">
<DIV align="right" dir="rtl">
<meta charset="visual">
<center>
<marquee bgcolor="#EAD88E" width="274" direction="right" style="font-family: BN Next Genartion; color: #4FA3FF; font-style: oblique; font-weight: bold" scrolldelay="102" scrollamount="4" behavior="alternate">ברוך הבא לעמוד המשוב של נקסט!</marquee><br>
<input type="button" value="שלח משוב" onclick="send_replay()">
</DIV>
<?
include( "config.php" );
$query = mysql_query("SELECT * FROM `sander_name` LIMIT 0, 15") or die(mysql_error());
while(@($r = mysql_fetch_array($query))) {
{
$sander_name = $r["sander_name"];
$sander_name = hebrev($sander_name);
$sander_name = nl2br($sander_name);
$subject = $r["subject"];
$subject = hebrev($subject);
$subject = nl2br($subject);
$message = $r["message"];
$message = hebrev($message);
$min = $r["min"];
$min = hebrev($min);
$min = nl2br($min);
$icq = $r["icq"];
$email = $r["email"];
?>
<p align="right">
<a href="maillto:<? echo $email; ?>" title="שליחת אימייל ל-<? echo $sander_name; ?>"><font size="2">
<font color="#C0C0C0">
<? echo $sander_name; ?>
</font></a><b> :םש</font><br>
<font size="2"><font color="#000080"><? echo $min; ?> </font><u><b> :ןימ</u></font><br>
<font size="2"><font color="#000080"><? echo $icq; ?></font><u><b> :icq</u></font><br>
<font size="2"><font color="#000080"><? echo $subject; ?></font><u><b> :אשונ</u><br>
<u>:העדוה</u><br>
<font color="#000080"><? echo $message; ?></font>
<br>
<hr>
<?
}
?>
<?
}
?>
|