You are here: Re: dumping a array into PDO::db using place holders. « PHP Programming Language « IT news, forums, messages
Re: dumping a array into PDO::db using place holders.

Posted by Rowan on 01/07/08 22:25

On Jan 7, 10:38 am, giblfiz <gibl...@gmail.com> wrote:
> > $stmnt->bindParam($i, $value);
>
> I'm not 100% about this, but doesn't binddParam want a data type
> specified, something like:
> $stmnt->bindParam($i, $value, PDO::PARAM_STR, strlen($value));

tried that, no luck. I think the problem is bindParam expects a
variable name. however I would like to just loop through the array.
This way I can use the same function to input arrays.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация