c-o-d-e Posted December 11, 2009 Share Posted December 11, 2009 I have this code, which is suppose to.. get the categories from the database, and it's all in a table, and in a form. In CSS, it centered it all, although the table doesn't center. Everything else in the case does. Here is my code. case 'submit': include 'config.php'; echo '<p>Submitting Tutorials</p>'; echo '<p>If your desired category and/or sub category is not here, please <a href="#">Submit</a> them before you continue!</p>'; echo '<form method="post" action=""><table border="0" align="center">'; $q = mysql_query("SELECT Category FROM Categories ORDER BY Category ASC") or trigger_error('Query failed: '. mysql_error()); echo '<tr><td>Category:</td></tr><tr><td width="527">'; echo '<select name="category" id="category">'; while($row = mysql_fetch_array($q)) { echo '<option>'. $row['category'] .'</option>'; } echo '</select></td></tr>'; $q = mysql_query("SELECT Subcategory FROM Categories ORDER BY Category ASC") or trigger_error('Query failed: '. mysql_error()); echo '<tr><td>Sub Category:</td></tr><tr><td width="527"><select name="subcategory" id="subcategory">'; while($row = mysql_fetch_array($q)) { echo '<option>'. $row['Subcategory'] .'</option>'; } echo '</select></td></tr>'; echo '<tr><td>Tutorial Name:</td></tr>'; echo '<tr><td><input name="tutname" type="text" id="tutname" size="86"></td></tr>'; echo '<tr><td>Tutorial:</td></tr>'; echo '<tr><td><textarea name="tutorial" id="tutorial" cols="65" rows="20"></textarea></td></tr>'; echo '<tr><td>Brief Tutorial Description</td></tr>'; echo '<tr><td><textarea name="description" id="description" cols="65" rows="3"></textarea></td></tr>'; echo '<tr><td><input type="submit" name="submit" id="submit" value="Submit"></td></tr>'; echo '</table></form>'; break; What is the problem? Thanks. Link to comment https://forums.phpfreaks.com/topic/184775-echos-with-tables-not-centering/ Share on other sites More sharing options...
cags Posted December 11, 2009 Share Posted December 11, 2009 Doesn't really sound like a PHP issue. How are you centring it? Link to comment https://forums.phpfreaks.com/topic/184775-echos-with-tables-not-centering/#findComment-975452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.