]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_network_data.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-list_network_data.php
index 8a003b546df604d601d618aff923b5f036d57765..428c3ce06f5a8f103f4a7bd2fa04ce72113ed1a6 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -62,7 +62,7 @@ if ($GLOBALS['network_display'] === FALSE) {
 } // END - if
 
 // Query for networks
-$result = SQL_QUERY('SELECT
+$result = sqlQuery('SELECT
        `network_id`,
        `network_short_name`,
        `network_title`,
@@ -79,10 +79,10 @@ ORDER BY
        `network_short_name` ASC', __FILE__, __LINE__);
 
 // Are there entries?
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // List all
        $OUT = '';
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Load row template
                $OUT .= loadTemplate('admin_list_network_data_row', TRUE, $content);
        } // END - while
@@ -95,7 +95,7 @@ if (!SQL_HASZERONUMS($result)) {
 }
 
 // Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // Add form for adding new entry
 loadTemplate('admin_add_network');