Use two tables in one php page (mysql)

后端 未结 1 1421
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-28 03:32

Trying to retrieve all the data onto one page... I\'ve got this working fine when it\'s retrieving from one table like so:

$data = mysql_query(\"SELECT * FROM mo         


        
1条回答
  •  我在风中等你
    2021-01-28 04:11

    SELECT md.*, qr.*
    FROM moduleDetails md
    LEFT JOIN qResponses qr
    ON qr.joinColumn = md.joinColumn
    

    Whatever column you used to link them together, use as the joinColumn.

    0 讨论(0)
提交回复
热议问题