Yesterday I have a question, just this unanswered.
I have a php login and register script. When the users register they get in the database is automatically assigned an ID (auto-increment).
This ID will in another table linked to a virtual machine (see Account ID: http://i47.tinypic.com/2gtr8g1.png).
Now I want in an HTML form's data show that virtual machine. This should be done by account by selecting the account_ID.
Could someone explain to me how to do?
According to me: SELECT * FROM .. and then I do not know anymore. It is not a fixed value for ID, since the ID is different per user.
Here you see the account table: http://i50.tinypic.com/2cgg75g.png
The tables I have are: Account(Here came the registered users with an auto-increment ID(account_id)) VM_Instance(Here stay the virtual machine details etc. These I would display in an HTML form which sorted on account_id)
I don't have code, I don't know how to work with this.. And I want a HTML Form that is filled with the table data I choose. But the data is per account different