$sql_query = "INSERT INTO `vip_tours'.'trip` ( `name`, `email`, `age`, `phone`, `gender`, `description`, `date_time`) VALUES ( '$name', '$email', '$age', '$number', '$gender', '$desc', current_timestamp());";
Asked
Active
Viewed 20 times
-3

Progman
- 16,827
- 6
- 33
- 48
-
1do you get an error? Also, please take a look at https://stackoverflow.com/a/24989031/14401587 – Daniel May 14 '21 at 16:50
-
what is the error you are getting ? Check your mysql connection for db name. Is it same as vip_tours ? – Indra Kumar S May 14 '21 at 16:50
1 Answers
1
You have a syntax error in your query.
`vip_tours'.'trip`
should be:
`vip_tours`.`trip`

Daniel
- 1,426
- 1
- 11
- 24