chinni
02-09-2003, 11:14 PM
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
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.
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
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.