Dreamboy2k3
Technical User
Can anyone tell me why this won't work please!
I have an insert command that goes like this:
$sql="INSERT INTO news(Title, Body,) VALUES ( \"$title\", \"$body\" )";
Therefore I thought that the update command would be like this:
$sql="UPDATE news SET Title = $title WHERE News_ID = 1"
but it doesn't seem to work?
Could someone show me where I'm going wrong please!! Thanks!
I have an insert command that goes like this:
$sql="INSERT INTO news(Title, Body,) VALUES ( \"$title\", \"$body\" )";
Therefore I thought that the update command would be like this:
$sql="UPDATE news SET Title = $title WHERE News_ID = 1"
but it doesn't seem to work?
Could someone show me where I'm going wrong please!! Thanks!