djoye
2[H]4U
- Joined
- Aug 31, 2004
- Messages
- 3,113
I decided to learn some PHP and discover more of the features that my web host provides (nice of the to have myPHPAdmin installed).
I run a fairly simple web page with a growing table of information. I decided to check out PHP and realized that I could import all of the tabled information into a database and then let PHP spit it out when the page loads. Now I can simply update information by updating a database instead of modifying an HTML file and re-uploading it every time.
This is the page: http://satsun.org/audio/
The 'last updated' part at the top is also a PHP script that finds the latest date (max(date)) from the database and updates whenever I add or change information in the table (people would ask if I was still updating the page). I'll eventually figure out how to make the top row clickable so it can be sorted differently; I see that jQuery can apparently do that but I'm betting I can do that just the same with PHP.
On the main page, instead of using something like WordPress I decided I'd have a go at making my own news posting script; I have a good enough grasp of SQL and databases that I can imagine what all of that stuff looks like behind the scenes so I'm having fun trying to reproduce that stuff. I'll of course have to limit the number of entries shown on the first page (SQL: LIMIT X) so I have to figure out how to implement clickable links to show the next X number of entries; shouldn't be a problem.
From my understanding, PHP doesn't have just a ton of uses other than this. I'm loving its ability to essentially let me update information on web pages without having to deal with modifying and uploading HTML files. What else am I missing out on? How should I stay updated regarding security issues?
I run a fairly simple web page with a growing table of information. I decided to check out PHP and realized that I could import all of the tabled information into a database and then let PHP spit it out when the page loads. Now I can simply update information by updating a database instead of modifying an HTML file and re-uploading it every time.
This is the page: http://satsun.org/audio/
The 'last updated' part at the top is also a PHP script that finds the latest date (max(date)) from the database and updates whenever I add or change information in the table (people would ask if I was still updating the page). I'll eventually figure out how to make the top row clickable so it can be sorted differently; I see that jQuery can apparently do that but I'm betting I can do that just the same with PHP.
On the main page, instead of using something like WordPress I decided I'd have a go at making my own news posting script; I have a good enough grasp of SQL and databases that I can imagine what all of that stuff looks like behind the scenes so I'm having fun trying to reproduce that stuff. I'll of course have to limit the number of entries shown on the first page (SQL: LIMIT X) so I have to figure out how to implement clickable links to show the next X number of entries; shouldn't be a problem.
From my understanding, PHP doesn't have just a ton of uses other than this. I'm loving its ability to essentially let me update information on web pages without having to deal with modifying and uploading HTML files. What else am I missing out on? How should I stay updated regarding security issues?