Jump to content

Query Insert quick help!


snowman15

Recommended Posts

This isnt working, I know something is wrong with it but I cant find it. Probably something with my variables.

 

$query= "INSERT INTO `users` ( `id` , `date` , `first` , `last` , `user` , `password` , `approve` , `email` )
VALUES (
NULL ,
CURRENT_TIMESTAMP , '".$_POST['fname']."', '".$_POST['lname']."', '".$_POST['user']."', '".$_POST['password']."', NULL, '".$_POST['email']."'
);";
$result = $db->query($query);

 

 

thanks in advanced!

Link to comment
https://forums.phpfreaks.com/topic/84951-query-insert-quick-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.