Ok.. This is what i use for showing the webpages on my site:
<?PHP
if(!$ID)
{
$ID = "1";
}
?>
<?PHP
mysql_connect("localhost", "webuser");
mysql_select_db("test_db");
$sql = mysql_query("SELECT * FROM websider WHERE ID = '$ID'");
while($row=mysql_fetch_array($sql))
{
print ("$row[kode]");
}
?>
This goes fine for fetching text from mysql.
I have two tables in the databse, ID and kode.
When i link to a page the syntax is index.phtml?ID=2
This is something i want to do dynamicly so if i add a page it will crate a link autmaticly
Sincerly
Fedde