随笔分类 -  php

摘要:利用php与html语句的相互嵌套关系,由mysql中调取<select>的<option><select id='function'><?php$result=mysql_query("select functoin from build_fun_info");while($row=mysql_fetch_array($result)) {?><option value="<?php echo $row["functoin"];?>"><? 阅读全文
posted @ 2012-11-25 19:03 Joyce-Lee 阅读(408) 评论(0) 推荐(0)
摘要:php代码中插入html代码可以不用echo,而是很“粗暴”地打断——<?php $i=0;while($i<mysql_num_rows($result0)){ list($s_id,$d_id,$install_site,$type,$property,$measure_renge,$output_signal)=mysql_fetch_row($result0);?>//亮点在这里!<tr><td><?php echo $type;?></td><td><?php echo $s_id;?>< 阅读全文
posted @ 2012-11-04 23:00 Joyce-Lee 阅读(521) 评论(0) 推荐(0)