Php's question about table data retrieval is worth mentioning & lt ;? Php & nbsp; include & nbsp; 'connect. php'; & nbsp; $ SQL = "SELECT & nbsp; * & nbsp php about table data worth reading
Include 'connect. php ';
$ SQL = "SELECT * FROM 'rwgl '. 'rwb '";
Mysql_select_db ($ mysql_database, $ conn );
$ Query = mysql_query ($ SQL, $ conn) or die ("error ");
While ($ row = mysql_fetch_array ($ query )){
$ I ++;
?>
}
?>
Mysql_close ($ conn );
?>
The result is:
1 aa bb 100 0
1 cc dd 2013-04-19 2013-05-01 100 0
1 ee ff 100 0
1 gg jj 100 0
What should I do if I want to click the second column of any row and query the data containing the values of the first and second columns of the row in the database? What should I do if I need to name the label box or ID? PHP MySQL database
------ Solution --------------------
To generate the second column Change
">
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service