rschoenbach
03-14-2007, 09:53 PM
I current have an array called $hole[].
the code is as follows:
$x=1;
$round_detail_string = "";
foreach ($hole as $value){
$round_detail_string += '(null,"'.$x.'","'.$value.'"),';
}
any ideas why this isnt adding the string to the string after it?
I am trying to create one long insert statement based on the values in the array.
Any suggestions?
the code is as follows:
$x=1;
$round_detail_string = "";
foreach ($hole as $value){
$round_detail_string += '(null,"'.$x.'","'.$value.'"),';
}
any ideas why this isnt adding the string to the string after it?
I am trying to create one long insert statement based on the values in the array.
Any suggestions?