0

データベースとしてmysqlを使用したvb6プログラムがあります。私のインストラクターは、vb6 を php に接続するように私に依頼しました。PHP コードは、レポートなど、vb6 の内部にあるもののみを表示します。私の質問は、これは可能ですか? 私はこれをグーグルで検索しましたが、具体的なアイデアはありませんでした。もしそうなら、どうすればこれを実装できますか、またはこれを達成するための手順は何ですか?

私はphpとmysqlの接続しか知らないので、これと混同しています。VB6 から PHP への移行は、私にとって新しいことです。これが不可能な場合は、php と mysql を使用する必要があります。これが可能かどうか知りたいだけです。

4

1 に答える 1

4

I'm going to throw an answer out there. No, you can't have PHP view what is "inside of VB6". You can't mix VB6 (or any VB) with PHP. But you can have them (the two applications) interact with each other by various methods such as API calls and through datbases.

What I think you mean though, is that you have a VB6 app connecting to and using a MySQL datbase.

Just make a connection to the same MySQL database with PHP and you can have the two systems share the data or "see what is in the VB6".

How to connect to MySQL in PHP http://www.php.net/manual/en/book.mysqli.php

于 2013-03-08T19:18:58.777 に答える