Changeset 583 for trunk/event/eventy.php
- Timestamp:
- May 7, 2009, 9:15:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/event/eventy.php
r563 r583 40 40 global $Database, $EventsLinks; 41 41 $Events = array('Running' => array(), 'Planned' => array()); 42 mysql_select_db("world");43 42 44 43 // Add already started events 45 $DbResult = mysql_query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()');44 $DbResult = mysql_query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()'); 46 45 while($Row = mysql_fetch_array($DbResult)) 47 46 { … … 83 82 } 84 83 85 mysql_connect("$db_server", "$db_user", "$db_pass"); 86 mysql_select_db("$db_mangos"); 84 mysql_select_db($Config['Mangos']['DatabaseMangos']); 87 85 88 86 $Events = Events();
Note:
See TracChangeset
for help on using the changeset viewer.