When 2 or more user registering with same email on same time. It is passing server side validation and allowing to insert as there is no data when checked in DB using form validation
Even, I've tried to put code exactly above insert method
Don't want to modify database structure like add unique key or etc
Please help
Thanks in advance
My Answer:
In Codeigniter, you can use the following code to get the current date and time in PHP:
php
$currentDateTime = date('Y-m-d H:i:s');
echo $currentDateTime;
This code will output the current date and time in the format 'YYYY-MM-DD HH:MM:SS'. You can customize the format by changing the parameters in the `date()` function.
Rate this post
3 of 5 based on 3791 votesComments