Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 03-17-2005, 09:59 AM   #1
Solid State Member
Join Date: Jan 2005
Posts: 6
Default How do i make it dynamic I dont want 20 000 pages of data?

I havent really got a clue what im doing so i need some help I am tryig to create a site with news on it the problem im having is that on my index.php isbring up the headlines with a section of content $leader fine but how do i create a link from the $headline to the same page (dynamic) but only showing the headline and full content of the headline clicked on.

I cant get my pages to be dynamic which is the whole idea of using mysql and php so please teach me or send me to some decent tutorials the manual on php.net is to technical it doesnt explain anything and the other tutorials out there are to simple they dont get into the complex stuff.

here is the code


@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM ($tablename)";

while ($i < $num) {

<!-- Begin #main -->
<div id="main">
<div id="main2">
<div id="main3">
<h2 class="date-header">
<? include("site/includes/time.php"); ?>
<div class="post">
<h3 class="post-title">

<!-- On the main index.php page I want 5 headlines and then I want the headline to link to this same (dynamic) page but with the variable $content also showing and the other four headlines no longer showing -->

<a href="Article alone page" title="permanent link"><? echo "$headline"; ?>
</a> - posted on <? echo "$datetime"; ?></h3>
<div class="post-body">
<b><? echo "$leader"; ?></b>

<div class="post">
<br />
<!-- End #main -->


Dodgyknacker is offline   Reply With Quote
Old 03-17-2005, 11:30 AM   #2
Masahiro's Avatar
Join Date: May 2004
Posts: 1,896
Default Re: How do i make it dynamic I dont want 20 000 pages of data?


Install and use that for your site, its free, on the GNU/GPL and has lots of languages.
Masahiro is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 06:06 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0