开发者

bank reconciliation

开发者 https://www.devze.com 2023-02-18 21:24 出处:网络
I am working on a bankreconciliation project. I imported two excel files into tables in a database as I\'m usingmysql.table-1 and table-2.

I am working on a bank reconciliation project.

I imported two excel files into tables in a database as I'm using mysql.table-1 and table-2.

I want to compare the values in both tables开发者_Go百科 and the mismatched values in one table should be added in another table so that values are balanced and print out the mismatches in the respective tables.

Can any one help to do this with PHP ?


These functions should do what you need

Connect to a database. If you don't have PDO and can't get it use mysql_connect.

Since you don't have user input you can use PDO::query or mysql_query to retrieve the records.

== or === will compare results from each table.

To insert use PDO::exec or mysql_query.

I think that that should be enough to start you off.

0

精彩评论

暂无评论...
验证码 换一张
取 消