I had so many mistakes i'm ashamed of myself! and yeah i corrected that and still the registration is not going to the database..
maybe i'll try to find another way to do it.
Search found 9 matches
- Tue Dec 06, 2011 2:42 am
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
- Mon Dec 05, 2011 11:42 pm
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
there was a space yes so now i'm not getting any error but still its not inserting the registration into the database
- Mon Dec 05, 2011 5:49 pm
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
I think i did something and heres what i got , i got this when i pressed run using php designer Notice: Undefined index: SCRIPT_NAME in C:\xampp\htdocs\init.inc.php on line 5 Call Stack: 0.0014 334944 1. {main}() C:\xampp\htdocs\register.php:0 0.0018 343456 2. include('C:\xampp\htdocs\init.inc.php')...
- Mon Dec 05, 2011 6:23 am
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
I corrected the typo and the space and set the error_reporting was E_ALL and am still getting no errors and the function is still not working! i dont know what else to do does using localhost affect anything or having all the .php in htdocs?
- Mon Dec 05, 2011 2:59 am
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
and i do that by switching display_error= off in the php.ini ? i have it off since i followed ur tutorial on it but i still dont get errors ! this add_user function is frustrating me i mean I re-did all the php 3 times and still stuck with the same problem am gonna post all the files i have again pr...
- Sun Dec 04, 2011 6:59 pm
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
I did what u told me and still its not working
function add_user($user,$pass){ $user=mysql_real_escape_string(htmlentities($user)); $pass=sha1($pass); mysql_query("INSERT INTO `users`(`user_name` , `user_password`) VALUES( '{$user}','{$pass}')" ); echo mysql_error(); }
- Sun Dec 04, 2011 6:24 pm
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
IT WORKED! I I know we should be calm on these forums and stuff but i thing I LOVE U! haha thanks a lot i still have a problem with my add_user function which i cant find out In user.inc.php function add_user ($user,$pass){ $user=mysql_real_escape_string(htmlentities($user)); $pass=md5($pass); mysql...
- Sun Dec 04, 2011 5:35 pm
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Re: Login/register tutorial
Hey thanks a lot really ,but i'm still having the same problem after i corrected it ... function user_exists($user){ $user=mysql_real_escape_string($user); $total= mysql_query(" SELECT COUNT (`user_id`) FROM `users` WHERE `user_name` = '{$user}' "); return(mysql_result($total,0)== '1')? tr...
- Sun Dec 04, 2011 5:15 am
- Forum: Tutorials
- Topic: Login/register tutorial
- Replies: 18
- Views: 3079
Login/register tutorial
hello ,i've been practicing php for 2 weeks now and i'm having a problem with my php in the register login tutorial! and I can't sleep because it bugs me ! so please help.I can't find what's wrong. When I put the user_exists function in the register.php file and make the error , it doesnt tell me us...