Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: Header

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Posts
    15
    Member #
    609
    Hola,

    I hope somebody will help me in figuring out a solution for my problem.

    In the following url,

    http://www.sarath.iwebland.com

    you can see "Courses".when you click on it, you get "Major subjects" listed and when you click on the first one, communication engineering, some information is displayed.
    Here on this page, you can notice, there is a heading with a back ground image and on the left side, there is "courses" and on the right side there is "back" which gets you to the previous page.

    I strictly did this one using simple HTML.I'm implementing a similar example using PHP and mysql, where I'm listing some topics(Ex:courses) and when you click on a topic, you show some sub-topics(Ex:major subjects) along with articles(ex: communication engineering) and when you click on articles you show their text(a file name is stored in the table)

    Here how my article table looks like
    ------------------------------------------

    article_id topic_id subtopic_id article_name article_content
    1 1 1 communicationengineering info.html

    PHP Code:

    <?php
        
    include "../dbconnection.dam";
    ?>

    <html>
    <head>
    <title>mypage</title>
    </head>
    <body>

    <?
        $select_query 
    "SELECT ARTIKEL_NAME, ARTIKEL_CONTENT FROM artikel where subtopic_id = 1 ORDER BY ARTIKEL_ID DESC";
        
    $result mysql_query($select_query);
        
    $numrows mysql_num_rows($result);
        while(
    $row mysql_fetch_array($result))
        {
    ?>
    <table border="1" cellpadding="2" cellspacing="2" width="275">

      <tr>
          <td width="280">&nbsp;

    <?
        
    echo "<a href='".$row[ARTIKEL_CONTENT]."'>".$row[ARTIKEL_NAME]."</a>";
    ?>

         </td>
      </tr>
    </table>
    <?
        
    }
    ?>
    </body>
    </html>
    So, the above code shows all the article names and when we click on each article, its file is shown.

    Now, i want to show the heading on my article content.How can i do that??

    Please help me.

    Sorry for the lengthy post

  2.  

  3. #2
    Senior Member assassingod's Avatar
    Join Date
    Nov 2002
    Posts
    112
    Member #
    307
    I thought
    PHP Code:
    <?php
                
    include("")
    ?>
    Could only be used with .php files?
    You seem to be using .dam
    assassingod - vB.org Moderator :ichatsmile:

  4. #3
    Junior Member
    Join Date
    Feb 2003
    Posts
    15
    Member #
    609
    Theres nothing wrong!I've been using such extensions since long time and it works fine with me.But, still I could'nt fix out a solution for the post i asked over here.

    Hope somebody would help me.

  5. #4
    Member
    Join Date
    Nov 2002
    Location
    Elmira, NY
    Posts
    41
    Member #
    261
    yeah actually i use .inc for alot of my sites and on one site http://uhlfans.com I use .uhl extensions

  6. #5
    Member
    Join Date
    Oct 2002
    Posts
    52
    Member #
    224
    You can instruct the webserver to process other extensions through SSI, PHP, etc. In Apache, ti can be done via .htaccess.
    -Andy Zmudosky


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:39 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com