How to add specific script that works with user input and databases.

  • Unknown's avatar

    Hi all,

    We are new to WordPress and want to create Website that will be taking user input, running specific script through databases using that input and then outputting specific result.

    I have found a way to connect WordPress page with databases, but not sure how to include script in between that will be making all calculations. Would appreciate any help and advice.

    Thanks
    Farid

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    To access your site’s MySQL database, you will need our Business Plan (or higher) and this is not possible on free sites.

    Learn more about our WordPress.com Business Plan here: https://wordpress.com/pricing/

    Also, given what you are trying to do you may wish to consider setting up a self-hosted WordPress site, which are sites that you create on a “traditional web host” like Bluehost, GoDaddy, etc.

    WordPress sites set on a traditional host like that (instaed of here) would also allow you to access the site database.

    Hope this helps!

  • Unknown's avatar

    thanks for your reply.

    I have figured out part about MySQL. What I am not sure is how to pick the input data which user will be entering, then to make specific calculations based on that input and existing MySQL database and then return a specific output.

    I would appreciate if you point me in right direction.

  • Hi there,

    We are not able to provide developer support here in our general site help forums, so I am not sure how to answer that question.

    One thing I should clarify is that we do not allow remote DB access for security reasons, so to manipulate the DB you must use our built in phpMyAdmin interface. With that in mind it’s best to consider if your custom integration can be created as a “plugin” to WordPress, as a plugin is the best (preferred) way to interface between your site front-end and the WordPress MySQL database itself.

    More info here: https://developer.wordpress.org/plugins/

    I am not sure of your spec, but if you need remote database access for some reason, or need to set up a second database outside of the one that WordPress creates, you will instead want to set up a self-hosted WordPress site, which are sites that you create on a “traditional web host” like Bluehost, GoDaddy, etc.

  • The topic ‘How to add specific script that works with user input and databases.’ is closed to new replies.