Posted: Sun Jul 08, 2007 7:07 am
Dear Forum,
I am in the process of setting up a complex application, and while reading the documentation, I came up with a bunch of questions which I cannot solve, probably due to my limited programming experience. I have some knowledge of PHP, MYSQL and HTML.
The application is the following:
It is a list of institutions.
Users should be able to add an institution, name, country, state, city, and the type of institution.
I was able to do this, the different options are drawn from select tables, such as a separate table contains the list of countries.
Depending which institution the user picks, there will be a table assigned to each, detailing more data about the institution, but these are different, such as banks or restaurants. So, one table will contain banks, one institutions, and the connection is the main record id.
Also, users can enter comments about the institution, like a blog, where a table will be set up, common key is main record id, and one comment per one institution, but in this case, this table can contain all the different institutions.
So, what I would like to achieve is the following:
I would like to list and browse the different institutions, which I believe I can do.
From here, I?m lost?
I would like to set up a separate column, with buttons instead of data, where the user can get either the detailed data about the institution and the blog.
Also, the users should be able to add records.
The way I imagine this, is they can add the main record of the institution, at the end select the type of institution. Based on that selection, bank for example. Once user submits the form, the next for would pop up to collect the info about the certain bank.
I will have separate users, admin, guest, etc. I was able to set that up.
For the regular user, I would like to keep the screen as simple as possible.
My other question, as I was testing some things, is that I?m not able to display two tables in one.
For example, one table has recordid, name and countryid, the second has id, country name, capital.
I would like a table where the order of columns is name, country, capital.
I managed to do it in SQL, but when I tried adding an SQL statement to the fields.ini table, only the info from the first table came up.
Do you have any ideas for me how to get started?
Thank you:
Tamas
I am in the process of setting up a complex application, and while reading the documentation, I came up with a bunch of questions which I cannot solve, probably due to my limited programming experience. I have some knowledge of PHP, MYSQL and HTML.
The application is the following:
It is a list of institutions.
Users should be able to add an institution, name, country, state, city, and the type of institution.
I was able to do this, the different options are drawn from select tables, such as a separate table contains the list of countries.
Depending which institution the user picks, there will be a table assigned to each, detailing more data about the institution, but these are different, such as banks or restaurants. So, one table will contain banks, one institutions, and the connection is the main record id.
Also, users can enter comments about the institution, like a blog, where a table will be set up, common key is main record id, and one comment per one institution, but in this case, this table can contain all the different institutions.
So, what I would like to achieve is the following:
I would like to list and browse the different institutions, which I believe I can do.
From here, I?m lost?
I would like to set up a separate column, with buttons instead of data, where the user can get either the detailed data about the institution and the blog.
Also, the users should be able to add records.
The way I imagine this, is they can add the main record of the institution, at the end select the type of institution. Based on that selection, bank for example. Once user submits the form, the next for would pop up to collect the info about the certain bank.
I will have separate users, admin, guest, etc. I was able to set that up.
For the regular user, I would like to keep the screen as simple as possible.
My other question, as I was testing some things, is that I?m not able to display two tables in one.
For example, one table has recordid, name and countryid, the second has id, country name, capital.
I would like a table where the order of columns is name, country, capital.
I managed to do it in SQL, but when I tried adding an SQL statement to the fields.ini table, only the info from the first table came up.
Do you have any ideas for me how to get started?
Thank you:
Tamas