I have table called “users” and I want to make an exact copy as “users_2” as regard the structure only not the content.
I wanna do this using PHP only as I don’t have an access to phpMyadmin or mysql console.
Do you have an idea how to do that ?
I have table called users and I want to make an exact copy as
Share
After connecting to your database appropriately in php (mysql_connect):
mysql_query("create TABLE tablename like SRCTABLE");