Online, etc. simple question! The MySQL database has a good table with the following fields: good_id (auto-increment) and good_name. good_id (13, 14 ,.....) It is a number, and good_name is a Chinese character (Tian Nan Xing, Bai Shu ...) There is a dateinfo. php page with parameters, dateinfo. php? Good_id13, I want to put good_name corresponding to the good_id parameter online, etc., a simple problem!
The MySQL database has a good table with the following fields:
Good_id (automatic growth), good_name
Good_id (13, 14 ,.....) It is a number, and good_name is a Chinese character (Tian Nan Xing, Bai Shu ...)
There is a dateinfo. php page with parameters, dateinfo. php? Good_id = 13. I want to extract Chinese characters from the good_name field corresponding to the good_id parameter and display them in Between, is Tian Nanxing
------ Solution --------------------
PHP code
$ Result = mysql_query ("select * from good where good_id =". $ _ GET ['good _ id']); $ arr = mysql_fetch_assoc ($ result); echo"". $ Arr ['good _ name']."";