Jump to content

can you spot the not?


ok

Recommended Posts

What's the error?

 

My guess to why it's not working is because you have the NOW() function in quotes. Also, your missing a parenthesis from the end.

 

So try this instead

$query = "INSERT INTO user_join (user_name, email, invited_by, date_join) VALUES ('$ufull_name', '$uemail', '$rfull_name', NOW())";

Link to comment
https://forums.phpfreaks.com/topic/122484-can-you-spot-the-not/#findComment-632462
Share on other sites

Wer did you get the now()? what if create a variable for the date() and pass the date() to the variable.... instead of now in your query change it to the variable you declared for the date.  ;)

 

NOW() is a MySQL function that inserts the current date/time into a datetime field in the database. So they are using it perfectly fine, no need to declare a date variable.

Link to comment
https://forums.phpfreaks.com/topic/122484-can-you-spot-the-not/#findComment-632555
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.