seany123 Posted June 26, 2009 Share Posted June 26, 2009 okay i had this code.. <?php echo "<td><a href=\"profile.php?id=" . $member['username'] . "\">"; if ($member['banned'] >= 1) { echo "<b>[b] </b>"; echo "<STRIKE>" .$member['username']. "</STRIKE></td>"; but i wanted to add a little bit at the start so i changed it to this... <?php if($member['gang_id'] >= 1) { echo "<td><a href='../gang_profile.php?id=".$gang['name']."'>[".$gang['tag']."]</a> "; } echo "<td><a href=\"profile.php?id=" . $member['username'] . "\">"; if ($member['banned'] >= 1) { echo "<b>[b] </b>"; echo "<STRIKE>" .$member['username']. "</STRIKE></td>"; my problem is that i want the new piece of code to be in the same table cell as the code I have below it... but f i remove the <td> at the start then it obviously isn't in the table at all. maybe there is a easier way to what im trying to do. Link to comment https://forums.phpfreaks.com/topic/163719-little-help-please/ Share on other sites More sharing options...
seany123 Posted June 26, 2009 Author Share Posted June 26, 2009 i just realised if i just echo td above the code then there is no need for any td in the code... now im faced with a new problem... is there a way to set this table width so its automatic? i tried this <th width="auto"><font color="#FFFFFF"><b>Username</b> and this <th font color="#FFFFFF"><b>Username</b> but it didnt work Link to comment https://forums.phpfreaks.com/topic/163719-little-help-please/#findComment-863849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.