Quotes Quotes Quotes

Posted:
in General Discussion edited January 2014
I created a quick little quote submission page, I have always found quotes to be interesting and fun. It was created using PHP, whilst using MySQL...



I created it on an iMac (Resolution 1024x769, millions of colors)



So, if the contrast seems way too dark, I'm working on balancing it out. I can't see what everyone else sees. I'll tweak the layout as I go



Anyways,



http://www.the-circle.net/database/submit_quote.php

http://www.the-circle.net/database/quotes.php



Now, please forgive me a little, I just took up PHP 24 hours ago and this is my first little experiment. But I hope everything goes alright.

Comments

  • Reply 1 of 16
    paulpaul Posts: 5,278member
    wow cool!

    how did you begin?
  • Reply 2 of 16
    Quote:

    Originally posted by Paul

    wow cool!

    how did you begin?




    Well, I found a nice tutorial that used mysql and PHP,and it broke it down nicely, I had been programming in various languages for "awhile", so naturally, I was able to understand. I experimented for a couple hours, and used http://www.php.net whenever I got stuck.



    Here is the link to the tutorial which I found helpful



    http://www.csis.gvsu.edu/~adams/WebA...php_howto.html



    This is the university I attend. But, actually, php is real simple if you had some programming experince. So I ahve found so far.
  • Reply 3 of 16
    mwahahahahaaaaa, you may be sorry you ever started this
  • Reply 4 of 16
    andersanders Posts: 6,523member
    I think its fine
  • Reply 5 of 16
    Quote:

    Originally posted by MagicFingers

    mwahahahahaaaaa, you may be sorry you ever started this



    Ahh yes, the slew of angry spammers. I am aware, thats why I created my own admin system, to deal with them. I also log IP's for possible bans if needed.
  • Reply 6 of 16
    willoughbywilloughby Posts: 1,457member
    I submitted "d'oh" by Homer Simpson. It doesn't display properly.



    it shows up like this:



    d/'oh



    I think you escaped the single quote improperly. When taking data from a user to put into a database use addslashes() and when displaying that data I'm pretty sure you should use stripslashes() before you write it out to the screen. see if that fixes the problem
  • Reply 7 of 16
    Quote:

    Originally posted by Willoughby

    I submitted "d'oh" by Homer Simpson. It doesn't display properly.



    it shows up like this:



    d/'oh



    I think you escaped the single quote improperly. When taking data from a user to put into a database use addslashes() and when displaying that data I'm pretty sure you should use stripslashes() before you write it out to the screen. see if that fixes the problem




    I noticed! It's because of ' in the sentence, it will be fixed when I am able to access the pages and fix them
  • Reply 8 of 16
    ast3r3xast3r3x Posts: 5,012member
    ...I got a book of 2,548 quotes for christmas! You are in trouble
  • Reply 9 of 16
    Primitive search engine added for some convenience. Will make it so you can browse without having to use the list.
  • Reply 10 of 16
    dmband0026dmband0026 Posts: 2,345member
    It's down. As of 12:50 am CDT on Sunday.
  • Reply 11 of 16
    Quote:

    Originally posted by DMBand0026

    It's down. As of 12:50 am CDT on Sunday.



    Nah, I just assigned a vhost to it. So I had to move some files around to a new directory to make it work. And I was in the middle of creating a page to tell people of the new location when this was posted



    http://quotes.the-circle.net is the "new" page, which is really just a different directory :P
  • Reply 12 of 16
    wrong robotwrong robot Posts: 3,907member
    Very neat page, it's going to need some better navigation once it starts to get big.
  • Reply 13 of 16
    Quote:

    Originally posted by Wrong Robot

    Very neat page, it's going to need some better navigation once it starts to get big.



    Yup, working on developing that, categories, page browsing etc.
  • Reply 14 of 16
    very cool, i like it
  • Reply 15 of 16
    crusadercrusader Posts: 1,129member
    Good job! Cool stuff. I think I seriously messed up my quote, but it is the only one from Chris Holmes so...
  • Reply 16 of 16
    Quote:

    Originally posted by Crusader

    Good job! Cool stuff. I think I seriously messed up my quote, but it is the only one from Chris Holmes so...



    Email me the corrections needed, I'll test out my administration panel I created
Sign In or Register to comment.