Paste a piece of code which is unclear to you and we can clarify it's meaning in pseudocode. Do not post externally, but include as normal attachment or preferably just code block. The files in your rar file seemed to be OK, except wrong file types and one of the files had only double instead of triple quotes for docstring at beginning of the file.
Good point to start understanding Python would be to go through the tutorial at python.org. If you know other programming language well, it should be then be possible for you to recode the main part of the program in PHP. Any points that you find difficult to catch, we can help you understand.
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...