Changeset 5433 for extensions/UserStat/userstat_aip.class.inc.php
- Timestamp:
- Mar 28, 2010, 9:46:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserStat/userstat_aip.class.inc.php
r4270 r5433 201 201 if($result) 202 202 { 203 while($row= mysql_fetch_assoc($result))203 while($row=pwg_db_fetch_assoc($result)) 204 204 { 205 205 $row['indent']=substr_count($row['global_rank'], '.'); … … 243 243 if($result) 244 244 { 245 $row= mysql_fetch_assoc($result);245 $row=pwg_db_fetch_assoc($result); 246 246 return($row["username"]); 247 247 } … … 277 277 if($result) 278 278 { 279 while($row= mysql_fetch_row($result))279 while($row=pwg_db_fetch_row($result)) 280 280 { 281 281 $returned[]=Array( … … 304 304 if($result) 305 305 { 306 while($row= mysql_fetch_assoc($result))306 while($row=pwg_db_fetch_assoc($result)) 307 307 { 308 308 $row["humanReadable"]=$list[$row["language"]]; … … 323 323 $returned = array(); 324 324 325 $sql="SELECT count(user_id) as nbUsers, t emplate FROM ".USER_INFOS_TABLE." GROUP BY template ORDER BY nbUsers DESC";326 $result=pwg_query($sql); 327 if($result) 328 { 329 while($row= mysql_fetch_assoc($result))325 $sql="SELECT count(user_id) as nbUsers, theme FROM ".USER_INFOS_TABLE." GROUP BY theme ORDER BY nbUsers DESC"; 326 $result=pwg_query($sql); 327 if($result) 328 { 329 while($row=pwg_db_fetch_assoc($result)) 330 330 { 331 331 $returned[]=$row; … … 359 359 $sql=" 360 360 SELECT name, 361 MAX(id) ASid,361 id, 362 362 MAX(nbRates) AS nbRates, 363 363 MAX(maxRate) AS maxRate, … … 409 409 if($result) 410 410 { 411 while($row= mysql_fetch_assoc($result))411 while($row=pwg_db_fetch_assoc($result)) 412 412 { 413 413 $returned[]=$row; … … 506 506 if($result) 507 507 { 508 while($row= mysql_fetch_assoc($result))508 while($row=pwg_db_fetch_assoc($result)) 509 509 { 510 510 $returned[$row['categoryId']]=$row;
Note: See TracChangeset
for help on using the changeset viewer.