Mr Boggy Man
New member
למה זה לא עובד?
שימו לב ל: update.php
שימו לב ל: update.php
<?php $ud_id=$_POST['ud_id']; $ud_title=$_POST['title']; $ud_subject=$_POST['subject']; mysql_connect(localhost,root,ADDT106IB); $query="UPDATE main WHERE id=$ud_id SET title=$ud_title subject=$ud_subject"; mysql_query($query) or die ("There was an error in the bloody My[as]Sql".mysql_error()); echo "Record Updated, $ud_title"; mysql_close(); ?>
הוא מוציא לי את ההודעה : There was an error in the bloody My[as]SqlYou have an error in your SQL syntax near 'WHERE id=1 SET title=Black subject=If you see this massage you dont need glasses' at line 1. מה הטעות פה?