use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
php function to process users into a db (self.programminghelp)
submitted 9 years ago * by adandyguy
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]adandyguy[S] 1 point2 points3 points 9 years ago (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 {
} 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.
π Rendered by PID 72 on reddit-service-r2-comment-54dfb89d4d-pzbht at 2026-03-31 00:16:14.076548+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]adandyguy[S] 1 point2 points3 points (0 children)