SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm going to create my first real website and I'm looking for ideas about designing it. This is not a commercial website, just a hobby project

    I guess this is mostly a question of a layout matter, but I want to use PHP/mySQL to have control over the content of the site.

    I want to design it using tables(wich I think is far better than using frames)and by doing so I think that the best way is to create a template.php and stick by that one when I want to add pages (like photos,diary etc).

    The thing is I just can't figure out the easiest way to have total control of the content using PHP/mySQL.
    A good example of that is http://www.webasterbase.com

    anyone who might be able to help me?

  2. #2
    Freelance Web Designer KeithMcL's Avatar
    Join Date
    Oct 1999
    Location
    Dublin, Ireland
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you should use PHPs include function on the template file.

    Use it to call in a header file, maybe a nav one and also a footer one. That's the way I have my own site setup. You can see what I mean at http://www.webdevsites.com

    I have the index.php file calling on 4 files. header.php, nav.php, body.php and footer.php

    Then every page I need to edit, I can do so my editing the body.php file

    I'm currently working on a content management system that allows me to enter articles, reviews, etc into a sql db and then each page on my site can call those form the db*

    *db=database (just in case nobody knows )

    rgds,

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uhmm.. ok I think I get the picture
    thanks


Bookmarks

Posting Permissions

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