parkourmumbai
New Member
- Messages
- 34
- Reaction score
- 0
- Points
- 0
Are mysqli functions disabled by default in the php configurations for new hosting account users?
I have been banging my head over the past 2 days, trying to get parameterized queries to work on my website for an insert statement, but it keeps giving me error messages. I have searched online for a solution high and low, but the only ones I can find for the specific error message that I recieve is that they ask to check the query itself or the connection string, both of which in my case have been checked thoroughly, and work absolutely fine in other areas of the site that don't work on parameterized queries.
And they also ask to check the syntax, which again, has been tripple checked by me, but it still throws the error.
Secondly, in the same insert statement, I need to post user comments on the same webpage, using a form at the bottom of the page. The form will collect data like the user's name, email, and the comment text, and will pass this data along with a timestamp to the backend database. Now I am located in the Indian Standard Time timezone, whereas the server I'm on (cossacks), is somewhere in the United States. And I'm a total noob where converting dates/time across timezones is concerned, even in the offline world.
Could someone please help me with a script/function that gets the exact datetime on the cossacks server at the moment when the user hits the submit button, then converts it to my local time (IST), and submits that converted datetime to the backend db, at the same time also accounting for daylight savings if any? Or are there any built-in scripts/functions in php that already do this that I am unaware of?
I have been banging my head over the past 2 days, trying to get parameterized queries to work on my website for an insert statement, but it keeps giving me error messages. I have searched online for a solution high and low, but the only ones I can find for the specific error message that I recieve is that they ask to check the query itself or the connection string, both of which in my case have been checked thoroughly, and work absolutely fine in other areas of the site that don't work on parameterized queries.
And they also ask to check the syntax, which again, has been tripple checked by me, but it still throws the error.
Secondly, in the same insert statement, I need to post user comments on the same webpage, using a form at the bottom of the page. The form will collect data like the user's name, email, and the comment text, and will pass this data along with a timestamp to the backend database. Now I am located in the Indian Standard Time timezone, whereas the server I'm on (cossacks), is somewhere in the United States. And I'm a total noob where converting dates/time across timezones is concerned, even in the offline world.
Could someone please help me with a script/function that gets the exact datetime on the cossacks server at the moment when the user hits the submit button, then converts it to my local time (IST), and submits that converted datetime to the backend db, at the same time also accounting for daylight savings if any? Or are there any built-in scripts/functions in php that already do this that I am unaware of?