Forums

Can I include my own mysql content in my pages? (4 posts)

  1. cricktriman
    Member
    Posted 1 year ago #

    I have a new php mysql site in development for our triathlon club and am considering whether to re-write using wordpress. It has a lot of pages having content stored in mqsql tables e.g. historic results and also some of the personal details I requrie from members are not commonly requested in registation scripts.

    So, before I go too far down the wordpress route can anyone advise me whether I will be able to write to and include content to my own mysql tables in wordpress pages?

    I'm guessing, looking at the php used in examples that it will be possible, but I can't find any examples or forum posts that give me a clear yes / no answer ot an indication of how easy it is.

    Hopefuly a simple one. Help appreciated. Thanks

  2. doodlebee
    Member
    Posted 1 year ago #

    Do you mean you already have an existing database with information on it, and you want to pull that information for display on your WP pages? If that's the case, then yes, you can. You have to write your own queries to do it, but it shouldn't be a problem. You can either write functions (to reuse stuff) in your theme's functions.php file or just put the queries into the template file you want the stuff to show up on.

  3. cricktriman
    Member
    Posted 1 year ago #

    Yes that sounds like what I was thinking ... so I will include the sql in my php in the usual way but just point it to the old db right? I therefore assume that I will be able to submit in the same way?

    thanks

  4. doodlebee
    Member
    Posted 1 year ago #

    As long as you have everything connected correctly, you shouldn't have any problems.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.