View Single Post
ישן 26-04-07, 21:16   # 1
Gold-System
Permanently Banned
 
מיני פרופיל
תאריך הצטרפות: Mar 2007
הודעות: 401

Gold-System לא מחובר  

אה, נכון חח שכחתי ..
אבל עדיין לא עובד -
PHP קוד:
<?
include "config.php"
if ( 
$_POST["xds"] != "1" ) {
$query mysql_query("SELECT * FROM `msg`"); 
$con mysql_fetch_array($query);
$msg $con['Updote'];

echo <<<EOF
<html> 
<head>
<form action="messege.php" method="POST"> 
<div align="center"> 
<textarea name="messege">
{$msg}</textarea> 
<input type="hidden" value="1" name="xds" />
<input type="submit" value="עדכן תיבה">
</form> 
</html>
EOF;
}

else {
$update $_POST['messege'];
mysql_query("UPDATE `msg` SET Updote = '{$update}'");
}
?>