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

Gold-System לא מחובר  

אה, סליחה, לא שמתי לב ..
ולא עובד ..
PHP קוד:
<?
include "config.php"
if ( !isset(
$_POST['messege']) ) {
$query mysql_query("SELECT * FROM `msg` LIMIT 0,1") or die(mysql_error()); 
$con mysql_fetch_object($query);
$msg $con->Updote;
echo 
"
<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>
"
;
}

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