Changeset 154 for www/global.php
- Timestamp:
- Feb 16, 2009, 7:54:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/global.php
r153 r154 187 187 global $Database; 188 188 189 $DbResult = $Database->query('SELECT id FROM users WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = users.id');189 $DbResult = $Database->query('SELECT Id FROM User WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = User.Id'); 190 190 $DbRow = $DbResult->fetch_assoc(); 191 return($DbRow[' id']);191 return($DbRow['Id']); 192 192 } 193 193
Note:
See TracChangeset
for help on using the changeset viewer.