- Timestamp:
- Feb 22, 2009, 5:46:24 PM (16 years ago)
- Location:
- beta/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/db_sample.php
r405 r445 3 3 $db_user = "web"; 4 4 $db_pass = ""; 5 6 $db_mangos = "mangos"; 7 $db_realmd = "realmd"; 8 $db_characters = "characters"; 9 $db_ghsystem = "wow_web"; 10 $db_webu = "wow_web"; 11 5 12 $db = new mysqli($db_server, $db_user, $db_pass); 6 13 if (mysqli_connect_errno()) -
beta/inc/html.php
r405 r445 62 62 <meta name=\"keywords\" content=\"".$this->CfgChck("keywords")."\" /> 63 63 <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/style.css\" /> 64 <script type=\"text/javascript\" src=\"styles/global.js\"></script> 64 65 <!--[if IE]><link rel=\"stylesheet\" type=\"text/css\" href=\"styles/ie.css\" /><![endif]--> 65 66 </head> … … 207 208 public function ShowNews ($kategorie) 208 209 { 210 global $db_webu; 211 209 212 if ($kategorie == "all") 210 213 { … … 215 218 $where = "WHERE `category` = '".$kategorie."'"; 216 219 } 217 $this -> db -> select_db( "wow_web");220 $this -> db -> select_db($db_webu); 218 221 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` DESC;"); 219 222 if ($sql -> num_rows > 0) … … 258 261 <tr> 259 262 <td>Sekce : <a href=\"?page=".$link."\">".$cat."</a></td> 260 <td> Zork</td>263 <td>".$row["autor"]."</td> 261 264 </tr> 262 265 </table>
Note:
See TracChangeset
for help on using the changeset viewer.