mysql - how to implement join operator -
I have 3 tables in my database, as shown below: -
(1) Users_registration - Username - Email - Enoded (2) Vendor - Registration - vid - vkey - btype - Email - pass - bussname - regdate - url - ownerfname (3) vorder - ttime - vid - tid - oid - uid - Zodiac - Cardid The user name in the user_register table and the UID in the vorder table is the same.
My code is so far: -
SELECT vo.ttime, vo Vorder vo INNER job vendor_registration vr ON vo.vid = vr.vid where uid = '' $ Name_array [$ Z] "Sort by TteieEid"; After implementing this code, my page looks like this! [Enter image details here] [1]
Actually I want to show your bussname in place of vid
e451ffc8-db29-4c08-ac67-0177aec6e2ab as shown in the image vendor, < / Div>
SELECT vo.ttime, Vr.bussname, vo.tid, vo.oid, vo.uid, vo. Join Vorder Vo INNER from the amount, vo.cardid, vendor_registration vr at vo.vid = vr.vid where uid = ''. $ Name_array [$ z]. "'Order by TTME DESC
Comments
Post a Comment