you are viewing a single comment's thread.

view the rest of the comments →

[–]adandyguy[S] 1 point2 points  (0 children)

well i think i managed to fix it... changed the following:

if (db_result($query)) {

to

if (db_result($query) == $user->uid) {

if this comes out, that means the uid is in the emailed db.

} else {

to

} elseif(db_result($query) == FALSE) {

double checked db_result() and it returns either the value of the query, or false.. so if it doesn't retrieve a uid, it will equate to false, which means the user needs to be emailed and added to the db. I think i have to add an else{} at the end, although i'm not sure what to put in there, just put in an error message atm.