Jump to content

Relation between php and MySQL


wingchunnt

Recommended Posts

I'm working with a template that came with all the preliminary queries I had to run in order to get the php template up and running. However, now that I'm about to dive deeper into the back end modifying I need to understand how MySQL is going to play a role.

 

Let's say I'm modifying the form filled out that allows new users to sign up for an account. Say I want to start adding fields that weren't in the original set up. For every new field that I create, do I need to go into MySQL and change it as well? If so is there an easy way of doing this?

 

In Ruby on Rails I know you'd run a command like "rake db:migrate" which intuitively updates the database.

Link to comment
Share on other sites

this is yet another question we cannot answer, due to the multiple different ways code could be written to accomplish any task, without knowing what the code is.

 

if the code is general purpose and data driven, there will be a definition somewhere (hopefully in a database table) that defines all the form fields and all information about each of them - display legend, field type, required, css style selector, validation rules, ..., that controls the production of the form fields and the processing of any form submission.

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.