Welcome Guest, Not a member yet? Register   Sign In
Two arrays, one SQL insert
#2

[eluser]richthegeek[/eluser]
Simple way to merge two arrays, using one as the keys:
Code:
foreach( $one as $key=>$value ) $three[ $value ] = $two[ $key ];

To do yours, though:
Code:
foreach( $one as $key=>$value ) insert_into_invoices( $value, $two[ $key ] );


Messages In This Thread
Two arrays, one SQL insert - by El Forum - 03-28-2010, 08:21 AM
Two arrays, one SQL insert - by El Forum - 03-28-2010, 08:33 AM
Two arrays, one SQL insert - by El Forum - 03-28-2010, 08:36 AM
Two arrays, one SQL insert - by El Forum - 03-28-2010, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB