简体   繁体   中英

Using PHP and MYSQL to do a search with a known Column

I'm been trying to help an uncle of mine do some PHP and MYSQL Coding. His task is to take a PO Number, refer to a table that lists that PO, and return to the browser specific columns of each row. I'm not sure if that made sense. Basically what we are building is a web app where a user can enter a purchase order number, and it'll run a script that will search a specific column in a table for that PO Now there are usually multiple rows that have the same PO so we need it to be able to send back all the different rows. Now to make it more fun we only need specific columns of those rows for data processing. We have an access database that does all this for us but we are looking at using MYSQL and PHP to see if it's easier. Any help would be appreciative, just a point in the right direction would help! Thanks guys!

您可以在SELECT语句中指定特定的列名称,这就是您要查找的内容吗?

SELECT column_name_1, column_name_2, etc... FROM table_name WHERE po_column_name = 'P.O. NUMBER HERE';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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