pschomburg Posted August 13, 2009 Share Posted August 13, 2009 I can't seem to get this to work, I made a .net program that backs up its database (sqlite) via ftp. I need to analyze the uploaded data, but can't seem to get it to work. function getNetSales($DBPath) { $Total=0; $db=sqlite_open($DBPath); $query = $db->query('SELECT OrderTotal FROM Orders'); echo $query->numRows(); while ($query->fetch(SQLITE_ASSOC)) { $Total+= $entry[0]; } return $Total; } What am I doing wrong? Link to comment https://forums.phpfreaks.com/topic/170103-sqlite-file-ftped-from-a-net-program/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.