Hi there.
I’m running a PHP/MySQL-based site wich displays results and information for different types of sports. The site as it is, works great. But as the site is growing, I’m starting to realize that I might be doing some basic things wrong. I’ll try to explain my situation/problem:
For each sports arrangement, I’m creating a new folder with all the pages on the server. I’m also creating a new database in MySQL, so that the results can be stored for a long time. But I’ve realized that the only file that changes between the same sport, is the file wich defines the MySQL-parameters like database, ip-adress and so on (the file is called connect.php). So I’ve been thinking that uploading all the files several times is a bit too much, since almost every page is identically. If I want to edit the page for a specific sport, I have to manually enter every past sports arrangement to edit each page.
Now, I’ve been thinking that it would be great to upload every identical page to a folder. And for each sports arrangement, I want to upload only the connect.php-file, and maybe another file that points back to the correct sports page/folder. I hope you understand what I want… I’m not the best at explaining things 😮
So, is this possible? I’ve been unable to achieve it, but I find it very strange if this isn’t possible.
Thanks!