Archive for June 7th, 2009

PHP & MySQL

YAY!!!!!!! Hehehehhehehhe……… Well, I just recently (a few days ago) Got my VERY OWN MYSQL DATABASE!!! :D Yeah… Hehehe….. Ok, well for a programmer, that can be a big thing. Have you ever done a multiplication table? something like this:

1 2 3
2 4 6
3 6 9

Well, that is essentially what a database is, just a giant… GIANT spreadsheet. Except, there is a twist, each cell can contain a file! That, or around two billion letters of text…. hehehhehehe…. Yup, this is big for me!

Now, I am reading a pretty decent book (not THAT long, about an inch thick) on how to use PHP to control a database. Right now, I have not even gotten through the part that teaches me how to use PHP lol. I all ready know PHP, but I am reading through the ENTIRE book so that I can build the files it will need later on, and learn techniques that I may not have know before. In fact, it has been a bit of a jackpot on arrays! I knew what they were : a variable that contains multiple values, which can be accessed via a key, but I did not know I could make them in such simple ways, I can create an array, now, using one line of code (which has about 10 characters in it)! SImplicity is beauty in the programming world! Even cooler, is that the same length of code can be used to generate a n array as long as I want. It only creates an array containing a range of numbers (say 1-31) good for day-of-the-month selections, in fact, in about five lines of code, I can create a PHP script that iterates through the array, and turns it into a selection drop down! Imagine, only about ten lines of code instead of over thirty! :D Any who, I am just happy pappy happy yay! Hehehheh.. Yes, just very VERY happy about this… The use of a MySQL database will allow me to store data using a PHP, which I can get to work hand-in-hand with a video game I make in Unity. Lets say I create a system for making custom levels, I could possible make it an option to upload your level to the internet!! With a full understanding of MySQL, that would be an even closer possibility!

Welp, I have successfully posted two things in thirty minutes LOL!

~Geo Larsnick

The evil… Hair cut?

Ok, well, I just find this funny… No… Hysterical!

Yeah… Well, even though it does not exactly look as though I am having the best time of my life, I am actually laughing on the inside. The reason I am not smiling, is because I am preforming a larsnick tradition, the larsnick anti-smile. We are professionals at NOT smiling. However, I need a bit of work, as proven by this photo:

NOTE: I am a BOY NOT a girl, a BOY. BOOOOOOYYYYYYY (I just have long hair lol)

And, thank god, I was not actually going for that style. It is late at the moment, so no picture of me as I am now. Maybe I will upload one later, when it is sunny.

~Geo Larsnick