Guest Posted January 25, 2009 Share Posted January 25, 2009 My question is, in the code below, what do the letters before the column names stand for? "ap" "cc" "pp" "pr" Are these letters necessary? What is their purpose? Is there any reference material explaining this? global $ddd; $query="select ap.auctions_max as bid_price , ap.auctions_high_cust as customers_id,ap.auctions_id, ap.products_id, pp.products_name, pr.products_model, cc.customers_firstname, cc.customers_lastname, cc.customers_email_address, ap.notified, ap.status from ".TABLE_AUCTIONS_PRODUCTS." ap, ".TABLE_CUSTOMERS." cc, ".TABLE_PRODUCTS_DESCRIPTION." pp, ".TABLE_PRODUCTS." pr where ap.auctions_high_cust = cc.customers_id and ap.products_id = pp.products_id and ap.products_id = pr.products_id and ap.notified = 1 and ap.expires_date <'". date("Y-m-d").' '.date("G:i:s")."' GROUP BY auctions_id"; $result=mysql_query($query); Thanks, Gerald Link to comment Share on other sites More sharing options...
♥kymation Posted January 25, 2009 Share Posted January 25, 2009 They are shorthand for the table names. You could write them out in full as well: auctions_products.auctions_max, etc. The authoritative reference is the MySQL Manual, but it's not the easiest to find things in. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 25, 2009 Share Posted January 25, 2009 Try www.w3schools.com for an easy intro to mysql Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.