Page 1 of 1
MSSQL
Posted: Fri Mar 18, 2005 12:20 pm
by farid10

Hi ya all!!
Well my only question this time is in PHP, when using mssql queries is:
mssql_bind($stmt, "@param1", $value, SQLCHAR, true)
In mssql_bind, can you use like more than one value in $value?? Like:
mssql_bind($stmt, "@param1", ($value1, $value2, $value3), SQLCHAR, true)
Thanks!!

Posted: Fri Mar 18, 2005 12:32 pm
by infolock
no. best thing to do is store values1-3 into an array (ie : $value[] = $value1; $value[] = $value2; $value[] = $value3;)
a good article on bind is here :
http://www.devarticles.com/c/a/PHP/Exec ... ith-PHP/4/
Posted: Fri Mar 18, 2005 12:36 pm
by farid10
Thanks infolock!!