Button with cell inside to big

Posted by josh_24_2 on Stack Overflow See other posts from Stack Overflow or by josh_24_2
Published on 2014-06-07T09:20:50Z Indexed on 2014/06/07 9:24 UTC
Read the original article Hit count: 193

Filed under:
|
|
|
|

When i load it loads its cell with the button inside to big.Link to an example image: http://i.stack.imgur.com/x5j40.jpg. Also is there a way to change size of cells :) Please help me, If you need more info please must ask and I will be happy to give more information.

<div class="content">
<?php 

$con = mysql_connect("","","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

  mysql_select_db("", $con);

  $result = mysql_query("SELECT * FROM users ORDER by user_id");

  echo "<link rel='stylesheet' href='<?php echo URL; ?>public/css/style.css' /><div class='CSSTableGenerator' >
                <table >
                    <tr>
                       <td>

                        </td>
                        <td>
                            ID
                        </td>
                        <td >
                            Username
                        </td>
                        <td>
                            Email
                        </td>
                        <td>
                            Admin
                        </td>
                        <td>
                            User Active
                        </td>
                    </tr>";

while($row = mysql_fetch_array($result))
  {
  if ($row['user_perm_level'] == "2") 
{
$admin = 'Yes';
}
else {
$admin = 'No';
}

  if ($row['user_active'] == "1") 
{
$active = 'Yes';
}
else {
$active = 'No';
}

  echo "<tr>";
  echo "<td><input type='checkbox' name='1' value='1'></td>";
  echo "<td>" . $row['user_id'] . "</td>";
  echo "<td>" . $row['user_name'] . "</td>";
  echo "<td>" . $row['user_email'] . "</td>";
  echo "<td>" . $admin . "</td>";
  echo "<td>" . $active . "</td>";
  echo "</tr>";
  }
echo "</table></div>";

mysql_close($con);

?>

</div>

Thanks josh_24_2

© Stack Overflow or respective owner

Related posts about php

Related posts about html