Jump to content

Table Help


whiteboikyle

Recommended Posts

Okay well i have multiple tables.. But it wont allow 2 tables to stand next to each other.

 

Here is my code

i wanted it to be like

1    2

3    4

5    6

7    8

 

Here is the code

its PHP/HTML but i need the HTML help on it lol

<style type="text/css">
<!--
body {
background-color: #666666;
}
-->
</style>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>

        <?php
	$address_url = $_SERVER['PHP_SELF'];
	$address_url_new = str_replace("home.php", "", $address_url);

$images = scandir(getcwd());
foreach($images as $curimg){
if ($curimg == '.' || $curimg == '..' || $curimg == 'home.php') 
{
continue;
}
  echo "<table width='394' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td width='154' rowspan='4'><a href='$curimg'><img src='$curimg' height='175' width='150'></a></td>
    <td width='240' align='left' valign='top'>Direct Link:<br>

      <input name='textfield3' type='text' value='http://www.corpaluploads.com$address_url_new$curimg' size='40'></td>
  </tr>
  <tr>
    <td align='left' valign='top'><p>Forum Code:
    <br>
    <input name='textfield2' type='text' value='"; echo('[img=http://www.corpaluploads.com'.$address_url_new.$curimg.']'); echo "' size='40'></td>
  </tr>
  <tr>
    <td align='left' valign='top'>Html Code:<br>
    <input name='textfield' type='text' value='<img src=\"http://www.corpaluploads.com$address_url_new$curimg\">' size='40'></td>
  </tr>
  
</table>";
};
    
?></td>
  </tr>
</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.