diff --git a/tools/proftp.php b/tools/proftp.php index f4fcbf27..9616ae22 100644 --- a/tools/proftp.php +++ b/tools/proftp.php @@ -27,8 +27,8 @@ $sql.=" and dataorder.onlineappid=".$onlineappid; else if ($offlineappid>0) $sql.=" and dataorder.offlineappid=".$offlineappid; - $result = pg_exec($link, $sql); - $numrows = pg_numrows($result); + $result = pg_query($link, $sql); + $numrows = pg_num_rows($result); // Loop on rows in the result set. $content='';