User Tools

Site Tools


php:sqldo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
php:sqldo [2013/01/30 20:44] – created biggiphp:sqldo [2015/08/15 22:56] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<file php sqldo.php>
 function sqldo($query, $howparse = "", $querydb = "") { function sqldo($query, $howparse = "", $querydb = "") {
 // DB change for the query? // DB change for the query?
Line 14: Line 15:
                         $rows[] = $row;                         $rows[] = $row;
                 }                 }
-                return $rows;+                if (!empty($rows)) { 
 +                        return $rows; 
 +                } else { 
 +                        return; 
 +                }
         } else if ($howparse == "fetch_assoc") {         } else if ($howparse == "fetch_assoc") {
                 return mysql_fetch_assoc($retvar);                 return mysql_fetch_assoc($retvar);
Line 21: Line 26:
         return $retvar;         return $retvar;
 } }
 +</file>
php/sqldo.1359575058.txt.gz · Last modified: 2015/08/15 22:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki