Thread: Join
View Single Post
Old 02-17-2008, 04:24 AM   #5 (permalink)
TlcAndres
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

I can't seem to wrap my head around it

SELECT `banned` , `password`
FROM `mrf_users`
INNER JOIN `mrf_uhash` AS `hash`
WHERE `user_idFK` =3 ON ( MD5( CONCAT( 'trick', `hash`.`hash` ) ) = `password` )


In this query I'm trying to retrieve the hash and then md5 the concated string and match it with the retrieved password, I'm aware it's syntactically so any pointers would be great.
TlcAndres is offline  
Reply With Quote