binding data type error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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();   


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux