Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $address = "localhost";
- $username = "root";
- $password = "root";
- $database = "database";
- $table = "item_db";
- $connect = mysql_connect($address,$username,$password) or die(mysql_error());
- $select_db = mysql_select_db($database,$connect) or die(mysql_error());
- $query = mysql_query("SELECT * FROM `".$table."`") or die(mysql_error());
- $temp_str = "";
- while($fetch = mysql_fetch_array($query)){
- echo $fetch['id'].",".
- $fetch['name_english'].",".
- $fetch['name_japanese'].",".
- $fetch['type'].",".
- $fetch['price_buy'].",".
- $fetch['weight'].",".
- $fetch['attack'].",".
- $fetch['defence'].",".
- $fetch['range'].",".
- $fetch['slots'].",".
- $fetch['equip_jobs'].",".
- $fetch['equip_upper'].",".
- $fetch['equip_locations'].",".
- $fetch['weapon_level'].",".
- $fetch['equip_level'].",".
- $fetch['refineable'].",".
- $fetch['view'].",".
- $fetch['script'].",".
- $fetch['equip_script'].",".
- $fetch['unequip_script']."<br/>";
- }
- ?>
Add Comment
Please, Sign In to add comment