Hello,
I'm very new to PHP, so hopefully I'm not rehashing too much here.
I have a database that basically contains a set of links. Right now, I have different static HTML pages for different subcategories. I was thinking that maybe the best way to change things, now that I'm running a mySQL database using PHP for constructing dynamic pages, is to pass a variable, via a URL, to request a page based on the SubCategory, like this :
dbtest2.php3?SubCat=General+Resources
This works, and does what I want to it. But I have two questions :
Should I continue to stick with a single page for each SubCategory, and modify the script in each page for the new SubCategory, or should I have a single script that passes a variable as I mentioned above?
I have a category called "Tackle/Lures." How would I pass that? What do I do with the "/" in the SubCat name?
Thanks!
Mark