View Single Post
ישן 01-03-07, 15:31   # 1
LDan
Permanently Banned
 
מיני פרופיל
תאריך הצטרפות: Jan 2006
הודעות: 1,018
שלח הודעה באמצעות MSN אל LDan

LDan לא מחובר  

בעיה בעידכון מסד

הקטע הבא אמור לשלוף מספר להוסיף אחד ולהכניס חזרה:
PHP קוד:
<?
require('config.php');
if (
$_GET['id']) { 
$cod=$_GET['id'];
$som mysql_query("SELECT * FROM `reg` WHERE `idshin`='$cod' ORDER BY `votes` DESC")  or die (mysql_error());
$rec=mysql_fetch_array($som); 
$vv=$rec['votes']; 
$vov=$vv+1;
mysql_query("UPDATE `reg` SET `votes` = $vv WHERE `idshin`=$cod") or die (mysql_error());
?>
<html>
<head>
<title>&auml;&ouml;&aacute;&ograve;&auml;</title>
<meta http-equiv="Content-Language" content="he" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
K
</center>
</body>
</html>
<?
} else { 
echo 
"NOT K"

?>
לא מראה אף שגיאה אבל משום זה לא עובד
כאילו הוא לא מעדכן באחד
  Reply With Quote