|
look up mysql_error in the php manual and use it accordingly to print out error messages caused by mysql errors.
also echo out the value of $query so you can see the actual string that is being passed to mysql.
what value are you passing to $rid? looking at a value of 30ed7b13c560475621c217191fc20216 it is most likely hashed value of SHA1 so you might have to run that hash against the input value.
|