Пример #1
0
    </tr>
    <tr>
      <th scope="row">Số lượng</th>
      <td><label for="SoLuong"></label>
        <input type="text" name="SoLuong" id="SoLuong" /></td>
    </tr>
    <tr>
      <th scope="row">Mô tả sp</th>
      <td><textarea name="mtsp" cols="45" rows="5"></textarea>
        </td>
    </tr>
    <tr>
      <th scope="row">Mã hãng</th>
      <td><select name="mahang" id="mahang">
      	<?php 
$hang = danhsachhang();
while ($row = mysql_fetch_array($hang)) {
    ?>
        <option value="<?php 
    echo $row['mahang'];
    ?>
" ><?php 
    echo $row['tenhang'];
    ?>
</option>
        <?php 
}
?>
      </select></td>
    </tr>
    <tr>
Пример #2
0
<table width="100%" border="1" bordercolor="#999999">
        	    <tr>
               		
        	   		 <td height="99" align="center" ><img src="Việt Anh Mobile - Hệ thống bán lẻ Smartphone chính hãng_files/partner-1429870513.png"></td>
      	      </tr>
        	   
                <?php 
$qr = danhsachhang();
while ($row_hang = mysql_fetch_array($qr)) {
    ob_start();
    ?>
                     <tr><td height="35"><div id="{mahang}"><a href="?c={mahang}&b=mahang">{tenhang}</a></div></td></tr>
                    <?php 
    $s = ob_get_clean();
    $s = str_replace("{mahang}", $row_hang["mahang"], $s);
    $s = str_replace("{tenhang}", $row_hang["tenhang"], $s);
    echo $s;
}
?>
        	
      	      
        	    
      	    </table>