How to remove spaces
show_classroom.php
<title>Classroom Details</title>
$con = mysql_connect ("localhost", "root", "");
Connect via server locahost, user name is root, no password
if (! $con)
{
Die (' Could not connect: '. Mysql_error ());
}
mysql_select_db ("CRMs", $con);
$search 1 = "SELECT * from Classroom2";
$result 1 = mysql_query ($search 1, $con) or Die (Mysql_error ());
?>
CRMS-Classroom Details
The following is the case for all classrooms
Building No. |
Classroom Number |
Classroom Capacity |
Microphone Condition |
Air Condition |
Lamp Condition |
number of row interpolation |
Operation |
while ($row = mysql_fetch_array ($result 1)) {?>
echo $row [' building_id ']; ?>
|
echo $row [' classroom_id ']; ?>
|
echo $row [' size ']; ?>
|
echo $row [' Microghone ']; ?>
|
echo $row [' air_condition ']; ?>
|
echo $row [' light ']; ?>
|
echo $row [' Extention_wire ']; ?>
|
echo ' delete '; ?>
| echo "";}? >
Return
There are a lot of spaces between "classroom details" and "all classrooms as follows" when displayed? How to remove it?
------Solution--------------------
Your code i output. But I gave you that echo
removed, it feels like something is wrong, but he should fill in the form with the elements that affect the outside of the table.
In Add the following code to the middle of the test, do not put in the CSS, mainly to see the effect.