Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "conn.php";
- $sql = "SELECT * FROM Code_Nuklir";
- $query = mysql_query($sql);
- while($dt=mysql_fetch_array($query)){
- $item = array (
- "genre"=>$dt["genre"],
- "title"=>$dt["title"],
- "code"=>$dt["code"],
- "description"=>$dt["description"]
- );
- }
- $json = array(
- 'result' => 'Success',
- 'item' => $item
- );
- $d = mysql_fetch_array($query);
- print_r($d);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement