|
I've only just been able to get on. I'll give global variables a read. I am not using globals with any functions, just setting a variable in a script to be global and it seems to be working.
I go into my do_reg action script. Then, I go into a reg_select.php script to check whether the username or email address is already registered at the site. Depending on what affected_rows returns I set a global variable and set it to TRUE if it matched a row and FALSE if not. I then leave that script and do an if statement in the calling script: if (global declared was set to true) display error, else (if no match was found, login) and it works. I'll re-run through the topic.
As for the keyboard, I've managed to fix it! Weren't as tricky as I first thought.
Regards,
Lc.
Last edited by LearningCoder; 10-07-2012 at 07:54 PM..
|