Jump to content
New Reality: Ads For Members ×

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
https://forums.phpfreaks.com/topic/298511-relation-between-php-and-mysql/
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.

Archived

This topic is now archived and is closed to further replies.



×
×
  • 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.