norberto1112

Untitled

Jun 10th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $dbc=mysqli_connect('127.0.0.1','norbi','','tic') or die('not working');
  4. $query="SELECT * FROM category ";
  5.         $result=mysqli_query($dbc,$query);
  6.         Category:?>
  7.         <select name="asd">
  8.         <?php
  9.         while($row=mysqi_fetch_array($result))
  10.         {?>
  11.         <option value="<?php $row['cat_id']?>"><?php  $row['cat_name']?> </option>
  12.         <?php
  13.         }
  14.         ?>
  15.         </select>
Advertisement
Add Comment
Please, Sign In to add comment