如何从PHP页面获取数据,然后在VB.NET中添加到字符串? [英] How to Get Data from PHP Page, then Add into String in VB.NET?
本文介绍了如何从PHP页面获取数据,然后在VB.NET中添加到字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个连接到我的MYSQL数据库的PHP,它从数据库中获取数据。我想用VB.Net做的是从PHP页面获取数据,然后在VB.Net中将其作为字符串输入。
1.转到PHP页面获取数据
2.将数据发布到VB.NET字符串
php页面格式为..
EI
FNAME
MI
LNAME
工作
薪水
< ;?php
包括' conf.php';
$ result = mysql_query( SELECT *来自销售);
while($ row = mysql_fetch_array($ result)){
echo $ row [' s_number'];
echo $ row [' product_name'< /跨度>];
echo $ row [' goods_number'< /跨度>];
echo $ row [' sold_date'];
echo $ row [' time_sold'< /跨度>];
echo $ row [' customer_name'< /跨度>];
echo $ row [' customer_addr'];
echo $ row [' moved_status'< /跨度>];
echo $ row [' report'< /跨度>];
echo $ row [' update_note'];
}
?>
解决方案
result = mysql_query( SELECT * FROM sales);
while(
row = mysql_fetch_array(
result)){
回波
I have a PHP hooked up to my MYSQL Database, it gets data from the database . What I want to do using VB.Net is get that data from the PHP page, then enter it as a string in VB.Net.
1. Go to PHP Page and get data
2. Post data into VB.NET Strings
The php page is formatted like..
EI
FNAME
MI
LNAME
Job
Salary
<?php
include 'conf.php';
$result = mysql_query("SELECT * FROM sales");
while($row = mysql_fetch_array($result)){
echo $row['s_number'] ;
echo $row['product_name'];
echo $row['goods_number'];
echo $row['sold_date'] ;
echo $row['time_sold'];
echo $row['customer_name'];
echo $row['customer_addr'] ;
echo $row['moved_status'];
echo $row['report'];
echo $row['update_note'] ;
}
?>
解决方案
result = mysql_query("SELECT * FROM sales"); while(
row = mysql_fetch_array(
result)){ echo
这篇关于如何从PHP页面获取数据,然后在VB.NET中添加到字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文