What the heck happened? Simple anonymous idea form

Discussion in 'Web Development' started by Ronald1983, Sep 8, 2017.

  1. Ronald1983

    Ronald1983 Registered Member

    Joined:
    Sep 8, 2017
    Messages:
    6
    Likes Received:
    0
    I've been out of coding for years now, now mySQL is out of date PDO is the more efficient database.
    HTML 5 made .css much much more necessary. More efficient I suppose but damn is it annoying.
    But here's the question/objective:

    a) Create a form that will allow people to anonymously post suggestions, adding this data to a database table that can relay back to some kind of html based website to be publicly viewed
    b) Should I invest my time in PDO?

    After that I would like to add some features
    1) All suggestions will be publicly votable
    2) Others can anonymously comment on others suggestions.
    html for the face website?
    php for the database
    JavaScript? I feel like it's gonna be necessary for some reason.

    Thanks in advance!
     
  2. Sergio Duran

    Sergio Duran Staff
    Staff Member

    Joined:
    Feb 4, 2015
    Messages:
    128
    Likes Received:
    15
    Learning PDO is a good option, although depending on your needs and skills, you might want to check a higher level abstraction layer (for example an ActiveRecord library)

    If you're used to using the mysql library, switching to the mysqli library would be quite seamless and easy, it's almost identical, but it doesn't use global variables/states, which is is better.

    About HTML5/css, I would recommend using a css library, the most popular nowadays is Bootstrap, it makes writing modern CSS sites fast and easy.

    Writing the site you want, that's something you would need to work on, again, you might want to use a PHP framework to help you getting started, for example, Laravel, this one includes a database layer, you'll find it very easy to use once you read the docs.
     
    Brando likes this.
  3. Brando

    Brando Registered Member

    Joined:
    Sep 8, 2017
    Messages:
    6
    Likes Received:
    0
    MySQL is not outdated. The MySQL module in PHP is deprecated (in 7), vulnerable, and slow.
    PDO is a data object that has built in escaping and is overall better.
     

Share This Page