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 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 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? 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. 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. 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 ??? 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? 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
Archived
This topic is now archived and is closed to further replies.