Hi all, I have been running my site with the use of tables, and im currently trying to get rid of them, I have the basic template working now, however I am having a problem calling the information from my database to display on my menu, I use to use:
Origional: http://jcb33.co.uk/index.php
New: http://jcb33.co.uk/host/Website Final/
Etc, however I cannot get the php to call the information without inserting it into a table, help?
Origional: http://jcb33.co.uk/index.php
New: http://jcb33.co.uk/host/Website Final/
Code:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="23" class="quickHeading">Latest Updates </td>
</tr>
<?php
// retrieve all the rows from the database in jcb_quickMenu table.
$query2 = "SELECT * FROM `jcb_quickMenu` WHERE sectionID = 'Latest Updates' ORDER BY `menuID`";
$results2 = mysql_query( $query2 );
// print out the results
if( $results2 )
{
while( $contact2 = mysql_fetch_object( $results2 ) )
{
// print out the info
$menuUrl = $contact2 -> menuUrl;
$menuTitle = $contact2 -> menuTitle;
echo("<tr>");
echo(" <td height=\"18\"><a href=\"$menuUrl\" class=\"quickLinks\">$menuTitle</a></td>");
echo("</tr>");
}
}
else
{
die("Mysql problem : " . mysql_error() );
}
?>
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="23" class="quickHeading">Quick Links</td>
</tr>