binding data type error
| From: | hadi | Date: | Fri, 17 Apr 2015 02:02:09 +0000 |
| Subject: | binding data type error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324811@lists.php.net to get a copy of this message | ||
Hi dear list,
i have php script with Microsoft database. im trying to bind
SQLSRV_SQLTYPE_NVARCHAR('max') but im getting error Fatal error: Unknown
PDO::PARAM_* constant given
here is my code
$stmt = $con->prepare('insert into [feedtable]
(title,link,pubdata,description,category,image,imagelink,source) values
(:title,:link,:pubdata,:description,:category,:image,:imagelink,:source)');
$stmt->bindParam(':title',$item->title,SQLSRV_SQLTYPE_NVARCHAR('max'));
$stmt->execute();