Jump to content

Table Structures


ToddP

Recommended Posts

I'm in need of some assistance. I'm no expert in PHP / MySQL.

 

I have an old website that uses MySQL to store information. I have all of the .php files that have the sql queries in them, but I don't have any of the MySQL table structures. I would have to manually create the tables via phpmyadmin, but I don't know how to extract the correct required table structure from the .php files. Any help would be greatly appreciated.

 

Thanks

Link to comment
Share on other sites

To add to Barand's response. As you review the queries make sure you understand the logic needed to run that branch/section of the code. Analyze the queries to build the tables based on the code. Then run the code to execute those sections of code to see if they work. You're bound to have some typos and such along the way. Much better to do a little at a time, find/fix the issues and then continue to expand.

 

Be sure to analyze the code that submits the data to the database or how the data returned form the database is used. This will be valuable in determining field types and other properties.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.