Run the following command in your SQL database, this will ensure all post URLs are directed to the new subdomain: code example
Example 1: print data that will be inserted in the database
$key = strtoupper(c_security::random_string(22));
$c_con->query("INSERT INTO keys(key, days, used) VALUES ('$key',".c_security::anti_sql_string($_POST["daysammount"])."', '0')");
echo $key;
i think like that
Example 2: To give permission to the specific user for the CRUD operation in the database at a time
USE OnlineRestaurant1
GO
EXEC sp_addrolemember N'db_datawriter', N'RAHBARINFOTECH\LOVE'
GO
EXEC sp_addrolemember N'db_datareader', N'RAHBARINFOTECH\LOVE'
GO