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

Gold-System לא מחובר  

מה הבעיה בקוד הבא?

PHP קוד:
<?php 
include "config.php";

$query mysql_query("SELECT * FROM `msg`");
while(@(
$con $mysql_fetch_array($query)))
{
$msg =  $con['Update'];
}
?>
<html>
<head>
<form method="POST">
<div align="center">
<textarea name="messege"><?php echo $msg?></textarea>
<input type="submit" value="עדכן תיבה">
</form>
</html>
<?
$id 
$_GET['id'];
$update $_POST['messege'];
$updateSQL "UPDATE `msg` SET `Update` = '$update' WHERE `id`='$id'";
mysql_query($updateSQL) or die(mysql_error());
?>
תודה
  Reply With Quote