wingchunnt Posted October 10, 2015 Share Posted October 10, 2015 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. Quote Link to comment https://forums.phpfreaks.com/topic/298511-relation-between-php-and-mysql/ Share on other sites More sharing options...
mac_gyver Posted October 10, 2015 Share Posted October 10, 2015 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. Quote Link to comment https://forums.phpfreaks.com/topic/298511-relation-between-php-and-mysql/#findComment-1522864 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.