Changeset 755 for trunk/include
- Timestamp:
- Mar 25, 2005, 11:10:55 PM (20 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/constants.php
r739 r755 27 27 28 28 // Default settings 29 define('PHPWG_VERSION', '1.4.0 RC3');29 define('PHPWG_VERSION', '1.4.0'); 30 30 define('PHPWG_URL', 'http://www.phpwebgallery.net'); 31 31 define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net'); … … 59 59 define('RATE_TABLE', $prefixeTable.'rate'); 60 60 define('USER_FORBIDDEN_TABLE', $prefixeTable.'user_forbidden'); 61 define('CADDIE_TABLE', $prefixeTable.'caddie'); 61 62 ?> -
trunk/include/functions.inc.php
r749 r755 619 619 die ($error); 620 620 } 621 622 /** 623 * creates an array based on a query, this function is a very common pattern 624 * used here 625 * 626 * @param string $query 627 * @param string $fieldname 628 * @return array 629 */ 630 function array_from_query($query, $fieldname) 631 { 632 $array = array(); 633 634 $result = pwg_query($query); 635 while ($row = mysql_fetch_array($result)) 636 { 637 array_push($array, $row[$fieldname]); 638 } 639 640 return $array; 641 } 621 642 ?>
Note: See TracChangeset
for help on using the changeset viewer.