Jump to content

SQLite file ftp'ed from a .NET program


pschomburg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.