marklarah Posted January 13, 2008 Share Posted January 13, 2008 <html> <title>TLS-3 Foums</title> <body bgcolor="#000000"> <p>Hi</p> <table width="900" align="center" border="0"> <tr> <td width="100%" height="133"> <img src="top.gif" width="900" height="133"></td> </tr> <tr> <td width="100%" height="30" bgcolor="#333333"> <font color="#FFFFFF" face="Bell MT, Bahtang, Helvetica"><? include 'bar.php'; ?></font> </td> </tr> <tr> <td width="100%" bgcolor="555565"> <?php include 'dbs.php'; //echo '<table border="0"><tr><td>'; ?> <font face="Arial, Helvetica"><h1>Forums <hr width="300" color="white" align="left"></h1></font><br><br> <table width="94%" border="1"> <? $result="SELECT * FROM `cats` ORDER BY ID"; $articles = mysql_query($result) or die(mysql_error()); $num = mysql_num_rows($articles); if($num>0){ while ($row = mysql_fetch_array($articles)){ $catID = $row['ID']; $title = $row['title']; $caption = $row['caption']; echo '<tr><td align="center"><h2>'.$title.' -- </h2><h4>'.$caption.'</h4></td></tr>'; $resultb="SELECT * FROM `boards` WHERE `CAT ID` = '$catID'"; $articlesb = mysql_query($resultb) or die(mysql_error()); $numb = mysql_num_rows($barticles); if($numb>0){ while ($row = mysql_fetch_array($barticles)){ $btitle = $row['title']; $bcaption = $row['caption']; echo '<tr><td>'.$btitle.' -- '.$bcaption.'</td></tr>'; } }else{ echo "hi"; } } } echo '</table>'; ?> </td> </tr> </table> No login required, but see what happens for yourslef: tls-3.977mb.com I wan't the boards to display under the catagories, but the boards don't show. Help please Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/ Share on other sites More sharing options...
revraz Posted January 13, 2008 Share Posted January 13, 2008 Try replacing all your <? to <?php Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438176 Share on other sites More sharing options...
niwa3836 Posted January 13, 2008 Share Posted January 13, 2008 Sorry, might be a dumb answer, but you seem to have <? without <?php in the code? Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438178 Share on other sites More sharing options...
marklarah Posted January 13, 2008 Author Share Posted January 13, 2008 Its nothing to do with that. Quick tags are enabled. Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438180 Share on other sites More sharing options...
maexus Posted January 13, 2008 Share Posted January 13, 2008 Have you tried it. Debugging becomes a bitch as soon as you close your mind to even the smallest detail. Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438186 Share on other sites More sharing options...
marklarah Posted January 13, 2008 Author Share Posted January 13, 2008 still don't work. Im confused ??? Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438221 Share on other sites More sharing options...
marklarah Posted January 13, 2008 Author Share Posted January 13, 2008 Can somebody suggest an open source script? Quote Link to comment https://forums.phpfreaks.com/topic/85847-help-i-cant-seem-to-get-my-code-working-help/#findComment-438226 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.