Xtremer360 Posted September 27, 2010 Share Posted September 27, 2010 I have a query that's being ran however I'm wanting to take away the table portion of it to be more efficient with the coding because I've heard from so many people/places that you shouldn't use table and if you have to then only use it for tabular data. So I'm trying to figure how to I can still get this to look the same just without the table. print '<table>'; print '<tr>'; print '<td align="center">'; if (file_exists('/images/headshots/' . $posername . '.png')) { print '<img src="images/headshots/' . $posername . '.png">'; } else { print '<img src="images/headshots/default.png">'; } print '</td>'; print '<td class="name"><span class="rostername"><a class="biolinks" href="bio?username=' . $username . '">'.$charactername.'</a></span><br />'; print 'Height: '.$staffheight.'<br />'; print 'Weight: '.$staffweight.'<br />'; print 'Hometown: '.$staffhometown.'<br />'; print 'Job: '.$staffjob.'<br />'; print '</td></tr>'; } print '</table>'; Quote Link to comment https://forums.phpfreaks.com/topic/214552-removing-table/ 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.