SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2006
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    combineing php and html

    I have a html page with all the nice graphic link to others page, and also different left sidemenu for user selection, this menu and side menu are written in html, and would be use for future use, the problem I have is i have another php page which load the data and image from Mysql table, how would i combineing both into one page, with the menu and side menu in html code and centre and bottom parts with database data. muchly appreciate for your help and reply, thank you.

  2. #2
    Once I was a Factory Worker goofy's Avatar
    Join Date
    Dec 2004
    Location
    Sydney Australia
    Posts
    559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could create parts of your html layout and use php includes to pull them into your php page.

    for example, get the header section of your html page and put it in it's own file. Then in your php page call the include method and parse the header.html document to it to include that at the appropriate place in your php page. Repeat this for any all other areas of your design.

    Code:
    <?php include(header.html); ?>
    Goofy
    Life is what you make it!
    Follow your dreams!

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2006
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the reply what about the sidemenu land link? is it better to create in php or using the about method would ne nice ?


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
  •