Home > Backend Development > PHP Tutorial > 怎么去掉空格

怎么去掉空格

WBOY
Release: 2016-06-13 13:29:08
Original
957 people have browsed it

如何去掉空格
show_classroom.php




  课室详细信息


$con = mysql_connect("localhost","root","");
//通过服务器locahost建立连接,用户名为root,无密码

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

$search1 = "SELECT * FROM classroom2 ";

$result1 = mysql_query($search1, $con)or die(mysql_error());
?>


CRMS - 课室详细信息















while($row = mysql_fetch_array($result1))
  {
?>
 
 







  echo "
";
  }
?>

全部课室情况如下
栋号 课室号 课室容量 话筒情况 空调情况 灯管情况 排插数 操作

  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 '删除';
?>

返回



显示的时候“课室详细信息”和”全部课室情况如下“之间有很多空格?怎么去掉?

------解决方案--------------------
你的代码我输出了。但是我把你那个 echo
去掉了,看着就感觉有毛病,但是他在表格里应该补至于影响到表格外的元素吧。
在 中间加入下面的代码试验下,别放到CSS中去,主要看效果。


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template