This seems to be such a basic thing but for some reason my brain is on lock down.
What I want to do is this. I have two pages.
On valve-store.php I have this select statement: valve-store.txt
$query = "SELECT subName, subURL FROM sub_categories WHERE catId=1";
I want to take the catId and have it equal the subId on the next page.
On the subcategory.php page: subcategory.txt
So I want the subId=catId so this page displays the subId that is equal to the catId from the previous page.
I know I'm not doing this correctly and just need a little direction.
Any suggestions or help would be greatly appreciated! Thanks!
Here are the two pages (i put them in txt files so i could do attachments)
valve-store.php - valve-store.txt
subcategory.php - subcategory.txt