Hi, I'm working on my coding skills! Check out my About page if you want. Apart from that, let's just look at the projects! And maybe you should try some ambitious coding projects too! 🤔
Project #7: Dice face generator | |
---|---|
Estimated date of creation: November 2022 | Status: Online 🟢 |
DetailsI forget if this was from some tutorial. When you click the button, it generates a dice face. I think it's kind of a cool idea, actually. |
Project #8: Chrome dino game (but the dino and cactuses are just squares) | |
---|---|
Estimated date of creation: December 2022 | Status: Online 🟢 |
DetailsThis was just following a tutorial. Involved learning some JavaScript. Reverse engineer the code if you want to see how it works — it's all there in the HTML and/or JS files. |
Do you see how this page has two entries? Project #7 and Project #8. Could've been any of them but yeah.
And do you see how this page has no entries? Why do you think that is? Well, the reason is actually a HTTP 500 server database error. In the initial example, I didn't fully populate the list because it's a headache, but those tables are actually made of PHP and SQL code. In this version, the data is being password-blocked out or the database has been destroyed or something to that effect.
So what's special about this? It's that the table entries are made of database code, instead of just being typed in as HTML. This is the gravy that makes YouTube YouTube, 4chan 4chan, Reddit Reddit, etc. Once you figure out how to put data on a screen from the backend from a database, you're well on your way to launching a full-stack production-ready site!
All that HTML code is being generated by the PHP, and that's before the site even loads for the user. The PHP file turns into an HTML file, essentially, and if you look below, that's what this massive echo statement becomes: massive blocks of HTML code.
It's like the PHP file wasn't even there. It worked flawlessly. But this data was entered by hand into my SQL database, it's fetched by a password system from a Linux user account on my server from the database, it's given through the MySQLi driver from MySQL to PHP, and then the PHP loops through a bunch of information, before echoing it out. And then in the end it looks perfectly normal and the code does as well. It's like the exact same file! So you can do fairly advanced backend operations, and have it come out looking exactly the same as if you didn't, if you'd like. Half the data on this page, I decided to keep in a database instead of just writing it as HTML, just as a flex. 😉