I am trying to insert some values into my DB, but it is not working, I am trying to understand why it is not working, but I am an amateur php encoder,
This is the code I'm using:
$insert = mysql_query
("
INSERT INTO news(id,title,body,date,by)
VALUES ('NULL','".$title."','".$body."','".$date."','".$by."')
");
mysql_close($connect);
And the lines I'm trying to insert are: id, title, body, date, by
but it does not appear in the database or on my news page.
Can anyone help me out?
source
share