Cast Your Super Bowl LIX Vote Here.
So for another simple coding project with Ai we used Perplexity.ai to make a webpage to cast votes for who will win Super Bowl LIX. This project builds a little from the single page games and apps we have been making by adding PHP and a Database file (of sorts) so that the app can distinguish between users so it only logs one vote each.
To run this we put it in a folder in the “public” folder of our WordPress site since the php is already set to function within WordPress, we use LocalWP which runs the site locally. If you want to run it directly on your computer you will have to run a php server, but Perplexity can walk you through that as well.
As for the database, due to the simple nature of this app, we used a text file to store the data. The text file is created at the time of the first vote cast and can be cleared by simply deleting the file. This is a rudimentary database method, but for many simple applications can be an easy way to manage small amounts of information.
Since Perplexity allows us to share our conversations, you can check out the full query, code, and output for this app here and give it a try yourself. This would be a simple project to mess with the html and create a poll for almost anything.