Jump to content

Removing Table


Xtremer360

Recommended Posts

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>';

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.