18-04-2006, 14:00
|
|
|
חבר מתאריך: 14.07.05
הודעות: 558
|
|
עדיין לא עובד =\
זה כל הקוד:
קוד PHP:
<html dir=rtl> <head> <title>Try</title> <link rel="stylesheet" href="style/mainstyle.css" type="text/css"> </head> <body> <center> <table width=100% border=0> <td width=70% height=100 valign=top div align=center> <img src=""></td><tr> <td> <center> <a href=forum/forum><b><font size=1>פורום</a>::<a href=index.php><b><font size=1>ראשי</a>::<a href=bloglist.php><b><font size=1>מנהלים</font></a></td><tr> <td height=20 div align=right bgcolor=lightblue> <?php if($_COOKIE["user"] && $_COOKIE["pass"]) { // אם יש כבר קבצי קוקיז על המחשב include "db/check.php"; if(check($_COOKIE["user"],$_COOKIE["pass"]) == 1) { // אם הפרטים נכונים echo "<font size=1>מחובר כ: <a href=profile.php?blogname=".$_COOKIE["user"].">".$_COOKIE["user"]."</a> (<a href='logout.php'>התנתק</a> | </font>"; echo "<font size=1><a href=blog.php?blogname=".$_COOKIE["user"].">הבלוג שלי</a> | "; echo "<font size=1><a href=control.php?blogname=".$_COOKIE["user"].">לוח בקרה האישי</a>)</td>"; } else { // אם הפרטים שגויים - להתחייס כמו לאורח echo "<font size=1> ברוך הבא אורח/ת ( <a href='login.php'>התחבר</a> · <A href='register.php'>הרשם</a>)"; } } else { // אם אין קבצי קוקיז על המחשב echo "<font size=1> ברוך הבא אורח/ת ( <a href='login.php'>התחבר</a> · <A href='register.php'>הרשם</a>)"; } ?> </td><tr> <? include "db.php"; $id=$_GET["post"]; $r = mysql_query("SELECT * FROM posts WHERE id='$id'");
if($_POST["posted"]==1){ $title = $_POST["title"]; $msg = $_POST["msg"]; mysql_query("UPDATE `posts` SET `msg`='{$msg}',`title`='{$title}' WHERE `id`='{$id}' ") or die("שגיאה, אנא נסה שנית."); echo "ההודעה נוספה בהצלחה."; } ?> <?php ?> <tr><td> <form action="send.php" method="post"> <input type="hidden" name="posted" value="1"> <?php while($posts = mysql_fetch_array($r)) { echo "<font color=red>".$err."</font><br />"; ?> כותרת: <input type="text" name="title" value=<? echo $posts["title"]; ?>><Br /> תוכן: <br /> <textarea cols=50 rows=10 name="msg"><? echo $posts["msg"]; } ?></textarea><Br /> <input type="submit" name="submit" value="פרסם"> </form> </td> </body> </html>
_____________________________________
Your signature did not follow Fresh's signatures policy, therefore it was automatically erased. Please see the E-Mail which has been sent to you, to learn how to fix this.
|