MSSQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
farid10
Forum Newbie
Posts: 2
Joined: Fri Mar 18, 2005 12:18 pm

MSSQL

Post by farid10 »

:roll: 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!! :?
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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/
farid10
Forum Newbie
Posts: 2
Joined: Fri Mar 18, 2005 12:18 pm

Post by farid10 »

Thanks infolock!!
Post Reply