Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
databases:mobs:effects [2015/04/29 04:18]
127.0.0.1 external edit
databases:mobs:effects [2015/06/16 22:31] (current)
Line 8: Line 8:
 **Parameters surrounded by []s are required, while <>s are optional.** **Parameters surrounded by []s are required, while <>s are optional.**
  
-<​phpwikify>​ 
-$connect = mysqli_connect("​localhost",​ "​root",​ "​frost741",​ "​mythicmobs"​);​ 
  
-$query = mysqli_query($connect,​ "​SELECT * FROM mythicmobs_effects ORDER BY name ASC"); 
- 
-while($row = mysqli_fetch_array($query)) { 
-   ​if($row['​aliases'​] == ""​) $row['​aliases'​] = "​None";​ 
-   echo "​====="​.$row['​name'​]."​=====\n";​ 
-   echo " 
-<​html>​ 
-<​table>​ 
-  <tr> 
-    <​th>​Usage:</​th>​ 
-    <​td><​strong>​effect [location] "​.htmlspecialchars($row['​usage'​])."​ [hp_modifier] &​lt;​chance&​gt;</​strong></​td>​ 
-  </tr> 
-  <tr> 
-    <​th>​Info:</​th>​ 
-    <​td>"​.nl2br($row['​desc'​])."</​td>​ 
-  </​tr>";​ 
-  if(strlen($row['​examples'​]) > 0) { 
-  echo " 
-  <tr> 
-    <​th>​Examples</​th>​ 
-    <​td>"​.nl2br(htmlspecialchars($row['​examples'​]))."</​td>​ 
-  </​tr>";​ 
-  } 
-  echo " 
-</​table>​ 
- 
-</​html>​\n";​ 
-    
- 
- 
-} 
- 
-</​phpwikify>​ 

databases/mobs/effects.txt · Last modified: 2015/06/16 22:31 (external edit)