mysql - php insert into the database is not working -


i trying insert information database not working. following code:

$sql4 = "insert favorites (posted-date,posted-time,posted- datetime,journalid, by)  values ('test','test','test','test','test')"; 

try

$sql4 = "insert `favorites` (`posted-date`,`posted-time`,`posted-datetime`,`journalid`, `by`) values ('test','test','test','test','test')"; 

also check if connecting database correctly.

and have @ table , fields if of correct type , exists.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -