简体   繁体   English

如何使用vb.net编写代码以将信息保存到PHP数据库?

[英]how to write codes using vb.net to save information to PHP database?

I am designing an interface using vb.net and the values inputted there should be saved in a database and I choose to design my database using mysql in phpmyadmin. 我正在使用vb.net设计一个接口,并且在那里输入的值应该保存在数据库中,并且我选择在phpmyadmin中使用mysql设计数据库。 I already made my database in php via localhost/phpmyadmin/index.php. 我已经通过localhost / phpmyadmin / index.php在php中建立了数据库。 But I do not know what commands / codes should I write in vb.net so that ie the value of textbox.text would be saved in database. 但是我不知道我应该在vb.net中写什么命令/代码,以便将textbox.text的值保存在数据库中。 Can anyone help me? 谁能帮我? Im only a beginner in visual studio as well as PHP and mysql. 我只是Visual Studio以及PHP和mysql的初学者。 Thanks! 谢谢! Any help would be appreciated.:) 任何帮助,将不胜感激。:)

As everyone else has mentioned you are using the MySQL database not "PHP Database" 正如其他所有人所提到的,您使用的是MySQL数据库而不是“ PHP数据库”

This tutorial should get you going. 本教程应该可以帮助您。 I am linking right into part 3 as this is where they start to get into the code 我将直接链接到第3部分,因为这是他们开始进入代码的地方

http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-3 http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-3

However I highly recommend that you start from Part 1 if you have no previous database experience. 但是,如果您以前没有数据库经验,我强烈建议您从第1部分开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM