Inspiration - I'm a huge fan of Fantasy mmo's and I find myself trying to be as creative as possible with naming

What it does - It's a webpage that randomly generates male or female fantasy themed character names

How I built it - HTML for the main page, with a form that calls a php script. The php script establishes a connection with the database(which is localhosted for testing), performs a randomized query to each table containing the prefixes and suffixes, which are concatenated in a string on the fly until the name is complete. Output is generated within the php page, with a copy of the submission form at the bottom, should the user desire to continually generate names.

Challenges I ran into - Had a hard time figuring out how to turn the query results into printable string data to assemble for the output. Had some help from Tyler and Wen debugging that particular issue.

Accomplishments that I'm proud of - The whole thing. I'm not particularly well versed in php, and surmounting this challenge felt really good.

What I learned - How to use php to request information from a database and (eventually) I learned how to convert that information into usable output.

What's next for Fantasy Name Generator DB - I'd like to add functionality that lets users add prefixes and suffixes that aren't already in the DB, thus growing the number of possible names.

Built With

Share this project:

Updates