php - mySql Join with 4 tables -


select  * web_user e inner join web_audio ce on ce.uid  = e.uid  inner join web_videos c  on c.uid = e.uid inner join web_images d  on d.uid = e.uid e.uid = '1' 

we have scenario have 4 tables , want fetch records on basis of uid web_user table rest of tables fetch records on basis of web_user uid. have 6 records database. returning 8 time. below response of mysql query.

uid ufname ulname uemail username upassword uaddress ucity ustate uzipcode uphone uimage usertype ugenre website biography uverifycode featured activate ustatus upaid aid uid a_filename a_uploadname a_genre a_singername a_approve a_price vid uid v_filename v_uploadname v_short_desc v_singername v_approve v_price iid uid upload_file i_approve  ========================== 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 1 1 asd muhammad_709.mp3 5 asd 0 0.00 1 1 test video muhammad_578.flv hi test desc test singer 0 0.00 1 1 muhammad_561.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 1 1 asd muhammad_709.mp3 5 asd 0 0.00 3 1 test video bilal_174.flv hi test desc test singer 0 0.00 1 1 muhammad_561.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 1 1 asd muhammad_709.mp3 5 asd 0 0.00 1 1 test video muhammad_578.flv hi test desc test singer 0 0.00 2 1 muhammad_117.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 1 1 asd muhammad_709.mp3 5 asd 0 0.00 3 1 test video bilal_174.flv hi test desc test singer 0 0.00 2 1 muhammad_117.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 2 1 test file name muhammad_976.mp3 4 test singer name 0 0.00 1 1 test video muhammad_578.flv hi test desc test singer 0 0.00 1 1 muhammad_561.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 2 1 test file name muhammad_976.mp3 4 test singer name 0 0.00 3 1 test video bilal_174.flv hi test desc test singer 0 0.00 1 1 muhammad_561.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 2 1 test file name muhammad_976.mp3 4 test singer name 0 0.00 1 1 test video muhammad_578.flv hi test desc test singer 0 0.00 2 1 muhammad_117.jpg 0 1 muhammad mohsin mohsin@balianti.com mohsin 213123 test addresss 0 1 40100 333-2335-5555 fds_896_autumn-mist.jpg 1 6 null null 202cb962ac59075b964b07152d234b70 1 1 1 1 2 1 test file name muhammad_976.mp3 4 test singer name 0 0.00 3 1 test video bilal_174.flv hi test desc test singer 0 0.00 2 1 muhammad_117.jpg 0 


Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -