noexit Posted May 2, 2008 Share Posted May 2, 2008 I'm executing a select statement that brings back 10 fields, I'm using odbc.... One of the field values I need to use in a later query is defined as varbinary in the database (MSSQL 2005). I'm not having any luck in capturing the value in a variable so I can use it again in later query where this value matches one keyfield. Thanks. Link to comment https://forums.phpfreaks.com/topic/103924-varbinary-handling/ Share on other sites More sharing options...
hitman6003 Posted May 3, 2008 Share Posted May 3, 2008 try casting the varbinary variable to varbinary in the sql query... SELECT * FROM tablename WHERE varbinary_column = CAST('$varbinary_php_var' AS varbinary) Link to comment https://forums.phpfreaks.com/topic/103924-varbinary-handling/#findComment-532189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.