okay, i got this error now "Warning: date() expects at least 1 parameter, 0 given in C:\xampp\htdocs\example_reg.php on line 9" my line is this "$date = date();
@slewthisman sorry about that, that was my fault the date function has to have arguments in it for the format of the date.... this is what you want: $date = date("m.d.y");
@ryanconn4 thanks for that ryan, it finally works but date and time is not set accurately. in mysql i chose date for date and time for time in type section, is that how you set the date and time according to gmt time zone?
hello, i followed everything you said in your video. Theres one problem im having at the moment which is every time i fill out the form an error occur which says "Fatal error: Function name must be a string in C:\xampp\htdocs\example_reg.php on line 4". This error refers to "$username = $_POST('username');" on line 4 for me. Any HELP!!!!!!!!!!
@ryanconn4 okay thanks for that...i am still not able to trieve data from mysql for some strange reason. its saying "Notice: Undefined variable: _POS in C:\xampp\htdocs\example_reg.php on line 4"..i dont understand why
@ryanconn4 i added the "T" have a look "$username = $_POST['username'];" but when i submit the for form this error comes up "Notice: Undefined variable: _POS in C:\xampp\htdocs\example_reg.php on line 4" is very strange.
@ryanconn4 i corrected the mistake, there was no error when submitted, but when i looked in my mysql table called example, theres no data, why is that?
your a legend, passed my uni assignment because of you
Runcie11 1 month ago
Your db isn't always on localhost. it may be hosted on another domain, or another server, depending on your setup.
ReverendNillerz 3 months ago
tnx 4 this tutorial it's so easy to learn :))
plz keep it up. . . .
marineru08 3 months ago
Hello, Ryan. Your is the easiest of all the tutorial, but can you please send me the source code for this tutorial.
kolyxix 3 months ago
I watched well over 4 hours worth of tutorials and yours was the only one i could get working thank you sir
leicesterlord 3 months ago
Thanks soooo much!
I was looking for this all day!
Thanks again!
TheLoLGameplays7312 3 months ago
does your database connect? coz im having problems with mine.
amina2K7 1 month ago
How does the user know it's password once they register?..
geeno123 4 months ago
I have done everything right, i submit my form then the regprocess page shows up white but the data aint transfered to my database.
RecoilCinemaHD 4 months ago
me too it doesnt even go to regprocess with mine .. how to connect to database please help
amina2K7 1 month ago
hi there im a beginneer on php and sql...i need to know which software application is best for coding this stuff...
Naeem237 4 months ago
thanks. ^^
extraContrabando 4 months ago
when i submit it only does the password not the user
MrBlackops195 5 months ago
okay, i got this error now "Warning: date() expects at least 1 parameter, 0 given in C:\xampp\htdocs\example_reg.php on line 9" my line is this "$date = date();
", why??
slewthisman 6 months ago
@slewthisman sorry about that, that was my fault the date function has to have arguments in it for the format of the date.... this is what you want: $date = date("m.d.y");
ryanconn4 6 months ago
@ryanconn4 thanks for that ryan, it finally works but date and time is not set accurately. in mysql i chose date for date and time for time in type section, is that how you set the date and time according to gmt time zone?
slewthisman 6 months ago
@slewthisman no just set it as a string or varchar
ryanconn4 6 months ago
@ryanconn4 thanks the date is set correctly but the time is still wrong lol, should it to time for time?
slewthisman 6 months ago
@slewthisman thats the unix timestamp you can pass parameters in if you want just google php time function
ryanconn4 6 months ago
unable to see data in mysql after submitting the form. please help me!!!
slewthisman 6 months ago
@slewthisman do you have the config file set up?
ryanconn4 6 months ago
@ryanconn4 finally got it working :)
Do you know how to set date and time in mysql the date/time user registered?
slewthisman 6 months ago
@slewthisman yes just use the php functions for those.... date(); time(); then insert that data.
ryanconn4 6 months ago
@ryanconn4 would it show in the form?
slewthisman 6 months ago
@slewthisman no it wouldnt you would just insert it for every new member that signs up
ryanconn4 6 months ago
@ryanconn4 thanks, do you have a video of it? its quite hard to program it
slewthisman 6 months ago
@slewthisman I should have that in one of my php tutorials
ryanconn4 6 months ago
@ryanconn4 ok thanks for your help, one more question, should date and time be defined like this $date();
$time(); and in the insert section should it be like this $insert = 'INSERT into example(date, time) VALUES( "'.$date.'", "'.$time.'")';?
slewthisman 6 months ago
@slewthisman no it would be $time = time(); $date = date(); you cant make a function a variable
ryanconn4 6 months ago
@ryanconn4 pardon me what is config file set up ?
snitch014 2 months ago
@slewthisman same problem how did you fix this ?
snitch014 2 months ago
hello, i followed everything you said in your video. Theres one problem im having at the moment which is every time i fill out the form an error occur which says "Fatal error: Function name must be a string in C:\xampp\htdocs\example_reg.php on line 4". This error refers to "$username = $_POST('username');" on line 4 for me. Any HELP!!!!!!!!!!
slewthisman 6 months ago
@slewthisman those need to be brackets not parenthesis should be: $username = $_POST['username'];
ryanconn4 6 months ago
hi , can you include how you made you tables in mysql?
aldwin1213 6 months ago
@aldwin1213 yes I will show that in the next video
ryanconn4 6 months ago
i like this video dude thanx alot
nettusharda 6 months ago
@nettusharda Thanks..
ryanconn4 6 months ago
Comment removed
Gomidas95 7 months ago
it just went to regprocess and config page and did nothing ,didnt even add into db
McbainGames 8 months ago
There is no check if the fields are empty or not.
Lordlll 9 months ago
Yes....user can create their profile, edit it and can also see their friends' profile.
(I dont know how tough it is but each user can have their own directory(folder) where he/she can store their multimedia)
looking forward to your tutorials..
ankit123ful 10 months ago
One tutorial request...
Would you please make a tutorial on how to create an editable user profiles(just like any social networking site)?
ankit123ful 10 months ago
@ankit123ful Not a problem, your asking for one where each user has their own profile page and they have their own url for that profile page?
ryanconn4 10 months ago
@ryanconn4 Exactly... I really need a tutorial about how can users have their own profile..
paulermania 7 months ago
@ryanconn4 Yes, ryan, could you please make a video of that, much appreciated.
slewthisman 6 months ago
@slewthisman Make a video of which one?
ryanconn4 6 months ago
@ryanconn4 users profile with the url if possible?
slewthisman 6 months ago
@slewthisman I have a video that shows that its on my channel on profile page in php.
ryanconn4 6 months ago
@ryanconn4 okay thanks for that...i am still not able to trieve data from mysql for some strange reason. its saying "Notice: Undefined variable: _POS in C:\xampp\htdocs\example_reg.php on line 4"..i dont understand why
slewthisman 6 months ago
@slewthisman your missing the "T" in your global variable should be $_POST['username'];
all you need to do is ad the T at the end of POST
ryanconn4 6 months ago
@ryanconn4 i added the "T" have a look "$username = $_POST['username'];" but when i submit the for form this error comes up "Notice: Undefined variable: _POS in C:\xampp\htdocs\example_reg.php on line 4" is very strange.
slewthisman 6 months ago
@slewthisman do you have another post variable you forgot the T on?
ryanconn4 6 months ago
Comment removed
slewthisman 6 months ago
@ryanconn4 i corrected the mistake, there was no error when submitted, but when i looked in my mysql table called example, theres no data, why is that?
slewthisman 6 months ago
Comment removed
slewthisman 6 months ago
great tutorial...simplest and easiest and NO.1 tutorial for creating a PHP reg. form.
ankit123ful 10 months ago
@ankit123ful Thanks... Im glad it helped.
ryanconn4 10 months ago
lol accent is rlly like teacher -.- thank you for this tutorial
Driglou 10 months ago
nice tutorial thanks! oh btw, you are from Texas, right ? cool accent :) cheers from Argentina!
mysql 1 year ago
@mysql thank you, im glad you liked it, but no im not from texas but close the midwest
ryanconn4 1 year ago