Jump to content
GIGN Forum

Palīdziet Ar Mssql Convert Kveriju


kRi
 Share

Recommended Posts

Errors:

Warning: mssql_query() [function.mssql-query]: message: Disallowed implicit conversion from data type varchar to data type varbinary, table 'Registred.dbo.MEMB_MONEY', column 'memb__pwd'. Use the CONVERT function to run this query. (severity 16) in

Kāds varētu uzrakstīt priekšā pareizu sintaksi jamai convert f-ijai? Es tik biš vairāk kā cūka no aviācijas par šito saprotu..

Edited by kRi
Link to comment
Share on other sites

{
$rand = rand(10000, 99999);
if($Web['MD5'] == 1){
$md5_code=" [dbo].[UFN_MD5_ENCODEVALUE]('$pw', '$login')";
}
else{
$md5_code="$pw";
}

$msquery3 = "INSERT INTO MEMB_MONEY (memb__pwd)VALUES ('$pw')


*Izgriezu no tiek kverijiem to galveno, kas pie vainas

Īsāk sākot, pāriets no vienas CMS uz citu, abas ar MD5. Jaunajai CMS nepatīk vecā datubāzes varbinary tabula. Cik saprotu, laikam vaina ir tajā, ka paroles ģenerē ne tā kā vajag konkrētajai datubāzei..

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...