|
Posted by Captain Paralytic on 11/06/06 16:07
strawberry wrote:
> strawberry wrote:
> > Captain Paralytic wrote:
> > > strawberry wrote:
> > > The reason for getting the first INSERT that has a field called "name"
> > > is that the original code will output an INSERT statement for every
> > > array element that is processed, since the echo is outside of the "if"
> > > statement that identifies a table "name" field.
> >
> > Thanks a lot for the pointer CP. I'll take a look at it right away.
>
> Yep, excellent. That seems to have sorted out that problem.
>
> function array_to_mysql($array) //define the function
> {
> static $table = null;
>
> etc, etc...
>
> 1 down, maybe 9 to go?
>
> Anyway, thanks again.
Surely nearly 2 down, when you look at (and fix) the the "if" statement
that I mentioned ;-)
[Back to original message]
|