Hi again,
I'm ever so sorry, but alan and I still can't work out how all that fits together with the current code - we must be a bit useless :o/
Could someone be ever so kind and edit my code so it includes the scripting Kirk suggested?
Thankyou - dunstan
Code starts here:
<!--- MYSQL DATABASE LOGIN INFORMATION --->
<?
$dbuser = 'root';
$dbhost = 'localhost';
$dbpass = 'darkstar';
$dbname = 'links';
$dbtable = 'shopping';
//------ DATABASE CONNECTION --------//
$mysql_link = mysql_connect($dbhost,$dbuser,$dbpass);
$column = mysql_list_fields($dbname,$dbtable,$mysql_link);
$sql = "SELECT id, name, descript, url, category FROM $dbtable ORDER BY category";
$result = mysql_db_query($dbname,$sql);
?>
<!--- MYSQL DATABASE LOGIN INFORMATION ENDS --->
<table>
<tr>
<td>
<!--- DYNAMIC TABLE CODE --->
<?
$results = mysql_query("SELECT * FROM shopping ORDER by category");
?>
<table>
<tr>
<th>Site name</th>
<th>Description</th>
<th>Category</th>
</tr>
<?
while($row = mysql_fetch_array($results)) {
echo "<TR><TD><A HREF=\"".$row["url"]."\" target='blank'>".$row["name"]."</A></TD><TD>".$row["descript"]."</TD><TD>".$row["category"]."</TD></TR>";
}
echo "</table>";
?>
<!--- DYNAMIC TABLE CODE ENDS --->
</td>
</tr>
</table>