Changeset 4265 for trunk/include/functions.inc.php
- Timestamp:
- Nov 15, 2009, 1:26:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r3750 r4265 45 45 // columns are 'Field', 'Type' 46 46 $result = pwg_query('desc '.$table); 47 while ($row = mysql_fetch_a rray($result))47 while ($row = mysql_fetch_assoc($result)) 48 48 { 49 49 // we are only interested in the the field given in parameter for the … … 936 936 937 937 $result = pwg_query($query); 938 while ($row = mysql_fetch_a rray($result))938 while ($row = mysql_fetch_assoc($result)) 939 939 { 940 940 array_push($array, $row[$fieldname]); … … 1122 1122 WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].' 1123 1123 ;'; 1124 list($email) = mysql_fetch_ array(pwg_query($query));1124 list($email) = mysql_fetch_row(pwg_query($query)); 1125 1125 1126 1126 return $email; … … 1148 1148 } 1149 1149 1150 while ($row = mysql_fetch_a rray($result))1150 while ($row = mysql_fetch_assoc($result)) 1151 1151 { 1152 1152 $conf[ $row['param'] ] = isset($row['value']) ? $row['value'] : ''; … … 1193 1193 1194 1194 $result = pwg_query($query); 1195 while ($row = mysql_fetch_a rray($result))1195 while ($row = mysql_fetch_assoc($result)) 1196 1196 { 1197 1197 $array[ $row[$keyname] ] = $row[$valuename]; … … 1585 1585 // Use MySql date in order to standardize all recent "actions/queries" 1586 1586 list($cache['get_icon']['sql_recent_date']) = 1587 mysql_fetch_ array(pwg_query('select SUBDATE(1587 mysql_fetch_row(pwg_query('select SUBDATE( 1588 1588 CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY)')); 1589 1589 }
Note: See TracChangeset
for help on using the changeset viewer.