Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2012
    Location
    United Kingdom
    Posts
    39
    Thanks
    3
    Thanked 1 Time in 1 Post

    Querys from database

    Hi,

    I'm wanting to know if it's safe to do querys from database.
    What i mean is i'm building a template system that's MySQL based, so it picks up all the pages and it's content from the database & i was wondering if it's safe to do querys from the database.

    Currently it works fine, just a little slow on while(), but its going ok.

    Thanks,
    Clawed

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,495
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    The main point of having a database ... to query it for information/content.

    The speed problem may be a result of how you structured your database. Such things as "normalizing", assigning proper data types and sizes for columns, etc.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •