Righties, I've pasted the very basic backbone of the tutorial display page below. So the user can go filename?tutorial=1.
PHP Code:
<?php
$username="blahblahblah";
$password="blahblahblah";
$database="blahblahblah";
$host="localhost";
$ident = $_GET['tutorial'];
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM tutorials WHERE id='$ident'";
$result=mysql_query($query);
mysql_close();
$i=0;
$title=mysql_result($result,$i,"title");
$category=mysql_result($result,$i,"category");
$date=mysql_result($result,$i,"date");
$shortdesc=mysql_result($result,$i,"shortdesc");
$postby=mysql_result($result,$i,"postby");
$tutorial=mysql_result($result,$i,"tutorial");
$level=mysql_result($result,$i,"level");
$avatar=mysql_result($result,$i,"avatar");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="14" class="contenttop">Tutorial Information</td>
</tr>
<tr>
<td class="contentmain">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="contentcontent">
<tr>
<td>
<br/>
<strong>Tutorial Title: </strong> <?php echo ("$title"); ?>
<br/>
<strong>Category: </strong> <?php echo ("$category"); ?>
<br/>
<strong>Date Posted: </strong> <?php echo ("$date"); ?>
<br/>
<strong>Posted By: </strong> <?php echo ("$postby"); ?>
<br/>
<strong>Difficulty Level: </strong> <?php echo ("$level"); ?>
<br/>
<strong>Short Description: </strong> <?php echo ("$shortdesc"); ?>
<br/>
<strong>Avatar: </strong> <img src="<?php echo ("$avatar"); ?>"/>
<br/>
<br/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="14" class="contenttop"><?php echo ("$title"); ?></td>
</tr>
<tr>
<td class="contentmain">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="contentcontent">
<tr>
<td> <?php echo ("$tutorial"); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
300 points for anyone who can copy and paste that script back with the correct safety measures. If there's any possible chance NedreN could confirm that your method works before I send the points.
Thanks again
Woolie