host variables
| From: | Liris Muller | Date: | Mon, 27 Aug 2001 15:22:42 +0000 |
| Subject: | host variables | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11860@lists.php.net to get a copy of this message | ||
I use DB2 and I have a Long Varchar field. I need use host variables to
insert.How I make is in php ?
Ex.: (this code not insert datas because descr=long varchar)
$query = "insert into tb_public values
('$cod','$descr','$codr')";
I need a function in php or a mode to declare host variables :
$query = "insert into tb_public values ('$cod',:descr,'$codr')";
Thank.