- Timestamp:
- Oct 1, 2010, 10:33:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4486 r7066 77 77 */ 78 78 function ec_image_exists($cat, $img) { 79 return ( mysql_fetch_row(pwg_query("79 return (pwg_db_fetch_row(pwg_query(" 80 80 SELECT * 81 81 FROM `".IMAGE_CATEGORY_TABLE."` … … 190 190 if (defined('ADD_PAGES_TABLE')) { 191 191 $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`;"); 192 while ($r = mysql_fetch_array($res)) {192 while ($r = pwg_db_fetch_assoc($res)) { 193 193 $a = (is_in($r['title'], '/user_id=')) ? 194 194 explode('/user_id=' , $r['title']) : array($r['title']); … … 264 264 ORDER BY `id` 265 265 "); 266 while ($r = mysql_fetch_assoc($q))266 while ($r = pwg_db_fetch_assoc($q)) 267 267 $ec_lists['ec_table'][intval($r['id'])] = $r; 268 268 … … 378 378 // certain group (in groups, level (friends, family, contacts), 379 379 // or user status (generic)) 380 $types_entry_exists = (($t = mysql_fetch_row(pwg_query("380 $types_entry_exists = (($t = pwg_db_fetch_row(pwg_query(" 381 381 SELECT `arg2` 382 382 FROM `".EVNTCATS_TABLE."` … … 478 478 AND `user_id` > 2; 479 479 "); 480 while ($row = mysql_fetch_array($result)) {480 while ($row = pwg_db_fetch_assoc($result)) { 481 481 if (!isset($user_granted_from_type[$row['level']])) { 482 482 $user_granted_from_type[$row['level']] = array(); … … 517 517 AND `user_id` > 2; 518 518 "); 519 while ($row = mysql_fetch_array($result)) {519 while ($row = pwg_db_fetch_assoc($result)) { 520 520 if (!isset($granted_groups[$row['group_id']])) { 521 521 $granted_groups[$row['group_id']] = array();
Note: See TracChangeset
for help on using the changeset viewer.