I'm trying to insert some values into my DB but it's not working, i'm trying to figure out why it's not working but I'm an amateur php coder,
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 rows i'm trying to insert into are: id,title,body,date,by
but it's not showing up in the database or on my news page.
Can someone please help me?
No comments:
Post a Comment