Amerika Posted December 5, 2011 Author Report Share Posted December 5, 2011 SELECT t1.col1 FROM db1.table1 t1 INNER JOIN db2.table2 t2 ON t1.col1 = t2.col2 Mazliet nesaprastu šo, bet vai tas ir domāts šādi? SELECT table1.column1 FROM database1.table1 table1 INNER JOIN database2.table2 table 2 ON table1.column1 = table2.column2 Quote Link to comment Share on other sites More sharing options...
NBS Posted December 6, 2011 Report Share Posted December 6, 2011 Jap. Tikai neizmanto nepareizus aliasus, kas veidos tev synax error. Quote Link to comment Share on other sites More sharing options...
Amerika Posted December 6, 2011 Author Report Share Posted December 6, 2011 Uztaisīju šādi: $test = mysql_query("SELECT phpbb_profile_fields_data.pf_ingame_nick FROM CooMFP.phpbb_profile_fields_data phpbb_profile_fields_data INNER JOIN psychostatszmwar.ps_plr_ids_name ps_plr_ids_name ON phpbb_profile_fields_data.pf_ingame_nick = ps_plr_ids_name.name"); print_r($test); Bet rezultāts ir Resource id #5 Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 6, 2011 Report Share Posted December 6, 2011 mysql_error(). Quote Link to comment Share on other sites More sharing options...
Maris-S Posted December 6, 2011 Report Share Posted December 6, 2011 Tavā piemērā $test arī jābūt resursa identifikatoram. Apskaties mysql_fetch_array(), mysql_fetch_row() un mysql_fetch_assoc(). Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 6, 2011 Report Share Posted December 6, 2011 Taisnība Mārim. Esmu pārkodējies. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.