hi i'm trying to update my data from my database but it keeps reset the date back to 0000/00/00
and now it says error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE_FORMAT(new s_date, '%Y/%m/%d') as new_date FROM news SET new_date='', subj' at line 1
this what i got help please
and now it says error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE_FORMAT(new s_date, '%Y/%m/%d') as new_date FROM news SET new_date='', subj' at line 1
this what i got help please
Code:
$query = "UPDATE, DATE_FORMAT(news_date, '%Y/%m/%d') as new_date FROM news SET new_date='$new_date', subject='$subject', news_artical='$news_artical' WHERE news_id = '$news_id'";
Comment