Right, hello everyone! i am fairly new to this PHP and SQL malarky and have been busy making myself a nice database.
The idea is that on one page, you have the choice to select an id number (a primary key from my database), click submit, and then on the next page, the php comes up with all the database info for that key (this, i believe, is the principle behind mySql and php). I have no trouble making the database info appear, but only if i pre-script what the primary key is going to be.
How do i set the key to be the one entered on the previous page? what will the code be as the user presses "submit"?
On the php page, what the primary key be set at if it is unknown?
Any help is much appreciated. Please don't just say "read up on it" - i assure you, i am doing!
Maw Kowalski.
The idea is that on one page, you have the choice to select an id number (a primary key from my database), click submit, and then on the next page, the php comes up with all the database info for that key (this, i believe, is the principle behind mySql and php). I have no trouble making the database info appear, but only if i pre-script what the primary key is going to be.
How do i set the key to be the one entered on the previous page? what will the code be as the user presses "submit"?
On the php page, what the primary key be set at if it is unknown?
Any help is much appreciated. Please don't just say "read up on it" - i assure you, i am doing!
Maw Kowalski.