Jump to content

Recommended Posts

Hi all,

 

i built an interface which produces forms and near by also the sql databases for the forms. The forms have categories and items. My problem is when its build the form i can not relate the items to the categories. example-->

cars 

  ford 

  bmw

motors 

  yamaha 

  honda 

...

 

lets assume i built this form which also built the database. The database looks then like this-->

 

id cars ford bmw motors yamaha honda

 

if the order would never change i would have no problem but if i add or remove items and categories via the interface after i built the form it will add them after the last column. If i would now add another car it would it put after the last item "honda". I have only 2 chances.

 

a) is it possible to tell sql that ford and bmw are the items of the category car?

b) as my interface works dynamically and in a specific order it could change the order again after i submit the changes. If you add an item you have the possibility to say after which column ---> ALTER TABLE `test`.`yeni1` ADD COLUMN `df` VARCHAR(45) NOT NULL AFTER `kkkk`;...

Is there also a command which updates the please of the field?

 

one of them could solve my problem, please help...

 

thanks in advance...

Link to comment
https://forums.phpfreaks.com/topic/170540-field-order/
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.