Why not just do $id = mysql_query("SELECT id FROM users WHERE username='$username'"); instead of grabbing the last id. The last id would present problems if someone registered milliseconds after the last person.
its hard at the beginning, but when you thinking like the php structure you will start understanding it better. Its alot of functions that I have hard to remember but if you got a structure of want you want, then go after that and code part after part, then you will have a good result
ciao alex, once the email is sent ,we can log in even if we dont check the email, because into log in page we ask just 4 username and password,,dont u think we should ask 4 active=1 as well? thanks m8 anyway
$to = $email;
$subject = "activate your account!";
$headers = "From: what email?";
$server = "what is my server?";
milanhakaj 1 month ago
hi Alex
Thanks for those tutorial and for your effort
question about this video
at send activation email part
can (mail.google.com) be alternative for (mailhost.sheffield.ac.uk) if not how to get one be free
and use gmail for sending mail
what is ini_set() and STMP ??? explain more ..
thank you ..
DAN9RED 1 month ago in playlist Register & Login
this whole tutorial is kind of useless unless there is another video tutorial of "How to configure php.ini"
I am getting this error over and over again its not working...
Fatal error: Call to undefined function int_set() in C:\xampp\htdocs\test\register.php on line 93
leme317 1 month ago in playlist Register & Login
Can Someone give me a link to a video explaining how to set up the mail server thingy?
ShadowRazoe 1 month ago
where can i get a server or wht is the server plz
alimunth 1 month ago
I have tried using the email form and it didn't work, So i was doing a bit of searching and finally i came across a working script.
Youtube wont let me post the link.
----- How to get the script -----
1. Google SMTPmail 9lessons and it should be the first link click it
2. Scroll down untill you see " Download Script " click it, it should take you to a download
page: with the filename (SMTPmail.zip)
3. click the download button
If you need more help PM me
13firebug13 1 month ago in playlist Register & Login
@13firebug13 where can i get a server or wht is the server plz
alimunth 1 month ago
@alimunth
If you mean the mail server goto:
google smtp server list
or tell me you email provider and ill tell you the server
And just type in your mail provider (Eg. windows live)
That server is smtp.live.com
13firebug13 1 month ago
@13firebug13 my email is
alimunth@hotmail.com
and i have ather one
alimunth@yahoo.com
or
tubeethem@gmail.com
plzzzzz
alimunth 1 month ago
@alimunth
oh where do you live (contry and state)
13firebug13 1 month ago
@13firebug13 jordan(country) amman(city)
alimunth 1 month ago
@alimunth
SMTP servers
alimunth@hotmail.com is smtp.live.com
alimunth@yahoo.com is stmp.mail.yahoo.com
tubeethem@gmail.com is smtp.gmail.com
13firebug13 1 month ago
my server ??? plzzzzz help
theanmol1704 1 month ago
@phpacademy How do figure out what my server is ?
mezigpo 1 month ago
what do I need to write where $server = is if I am using gmail?
aleksy36 3 months ago in playlist Register & Login
What do i do with the smtp server?? i cant get it to work...
diod1997 4 months ago
WHICH EMAIL tutorial?
I cant find it?
who can helps mee with the mailserver..
fakhaterz 5 months ago
Download Free Php tutorials on this site scriptmo.com
This is best site
mralinkc 6 months ago
oh no! Mysql doesn't update the database anymore! What did I do wrong!?!?
114makoto 7 months ago
@114makoto I got solved after looking in other forums. I dropped the table, made a new one and it works again.
114makoto 7 months ago
I don't know my mailhost... i've tried everything
.
jimjimmy1995 8 months ago in playlist Register & Login
@jimjimmy1995 nvm
jimjimmy1995 8 months ago in playlist Register & Login
Why not just do $id = mysql_query("SELECT id FROM users WHERE username='$username'"); instead of grabbing the last id. The last id would present problems if someone registered milliseconds after the last person.
jimjimmy1995 8 months ago in playlist Register & Login
lool
labeed144 9 months ago
i love how you pronounce mail-function --> malfunction :D
FraNcoTirAdoRgaming 10 months ago
how to you remember all these codes...
PartyDoffy 11 months ago
@PartyDoffy
its hard at the beginning, but when you thinking like the php structure you will start understanding it better. Its alot of functions that I have hard to remember but if you got a structure of want you want, then go after that and code part after part, then you will have a good result
TechnoXeroz 10 months ago
@TechnoXeroz ok thanks :D
PartyDoffy 10 months ago
ciao alex, once the email is sent ,we can log in even if we dont check the email, because into log in page we ask just 4 username and password,,dont u think we should ask 4 active=1 as well? thanks m8 anyway
matrixITALIA 1 year ago
@matrixITALIA He does do this check in an earlier video.
jimjimmy1995 8 months ago in playlist Register & Login
When I type $lastid = mysql_insert_id(): It returns to 0 any ideas?
db id is auto_increment...
im stuff someone help!
r4d10mc 1 year ago
everything works pretty well till i reach the part with SMTP. got lost on this part.
danshader 1 year ago
@danshader he i am stuck on the same stage. i recive a email but no data is comming through
janapana007 1 year ago
@janapana007 i manage to solve mine it works just that you need a server that supports mail() and has smtp available
danshader 1 year ago
@danshader thanks for your reply. I will check that out, will let you know what happens. Thanks again.
janapana007 1 year ago
@danshader what do i need to put in the hearder is it my website url
janapana007 1 year ago
@janapana007 your email as in the one provided by the server(free hosting) you are using or the one you have from your own server registered.
danshader 1 year ago
all good but the host im using gmail requires a port so how do i do this for smtp
computertrick 2 years ago
how did you're making that with 'change password'?
ookamiwolf97 2 years ago
@ookamiwolf97 Change password uses the update function research on the mysql update function
computertrick 2 years ago
@computertrick ok thanks
ookamiwolf97 1 year ago
I'm wondering if someone can use some scripts on the activate.php page to randomly activate other ppl acc or mess up my db.
mayday82 2 years ago
Very enthusiastic to see the next part!
Many thanks Alex!
omanoman98 2 years ago