Wednesday 15 June 2011

arrays - Is it possible to make a code like Join two tables with PHP code -


I'm having trouble, I have a query to join the table with two databases and databases of each separate network the wanted. Examples include Networks 19,168.1.1 and Database EFD in the example ABC database 1968.1.2. I have tried and ask other people, they say that this is impossible, then are there other ways to join Python php code? An example like this:

Database ABC Table Glass is an array:

  array ([0] => array ( [ID] => 1 [Name] => Glass One) [1] => Array ([ID] => 2 [Name] => Glass Two) [2] = & Array ([id] = & gt; 3 [name] => glass three))   

Database EFD table value is an array from: Array ([0] = & gt; array ([ID] => 1 [glass_id] => 1 [value] => $ 50) [1] = & Gt; Hey ([id] = & gt; 2 [glass_id] = & gt; 2 [value] => $ 30))

and then I id < / Strong> above two Arrays in the array Glass_ID in two arrays and then I want to get a result below:

  Array ([0] => array ([name] = & Gt; Glass a [value] => $ 50) [1] = & Gt; array ([name] => glass two [value] => $ 30))  < / Pre>  

  & lt ;? Php $ array1 = array ("create", "model", "color", "year"); $ Array2 = Array ("Jeep", "Liberty", "Black", "2005"); $ NewArray = array_combine ($ array1, $ array2); Forex currency ($ newArray $ key = & gt; $ value) {resonant "$ key - strong> $ value  

"; }

Try this way.

No comments:

Post a Comment