
RitchieGunz
-
Posts
57 -
Joined
-
Last visited
Never
Posts posted by RitchieGunz
-
-
I keep getting this error and I've tried both making a custom header and changing the php.ini file
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\xampp\flexcusten\flexcusten\forgetpass.php on line 24
<?php require("./CustomSql.inc.php"); $db = new CustomSQL($DBName); $showtable = true; $errortag = false; if (!empty($sendpass)) { if (empty($email)){ $errortag = true; $errormsg = $error_emailempty; } $password = $db->emailcheck($email); if ($password=='0') { $errortag = true; $errormsg = $error_notamember; } if (!$errortag){ $headers = 'From: [email protected]' . "\r\n" . $message = "Hi Fellow Member"; $message .= "Your password is \n"; $message .= $password; mail("$headers","$email","$front_password","$message"); $showtable = false; } } ?>
-
I can finally do the dishes, they've been sitting there since yesterday, lmao
-
I don't think we did cause that just worked.
LADIES AND GENTLEMEN, we can finally mark this damn thread solved!
You're both getting friendly donations when the site is up and running!
Thank you guys so much especially you Bob for sticking wit me, lol
-
errrrrrrrrr!!!
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''username', 'password', 'email') VALUES ('ritchie', '64423c6f5ffd6a3205e0ad788ed' at line 1
-
Nothing changed
-
Goes to check.php and stays. Its blank and nothing added to db
-
OMG! lol
Parse error: syntax error, unexpected T_ECHO in C:\xampplite\htdocs\xampp\site\check.php on line 148
-
Lol, this is a headache .. Gimme this error again ..
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''username', 'password', 'email') VALUES ('ritchie', '64423c6f5ffd6a3205e0ad788ed' at line 1
-
Parse error: syntax error, unexpected T_EXIT, expecting ',' or ';' in C:\xampplite\htdocs\xampp\site\check.php on line 149
-
Error after error after error lol .....
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''username', 'password', 'email') VALUES ('ritchie', '64423c6f5ffd6a3205e0ad788ed' at line 1
-
Its for this line:
//Connect to the database
$connect = mysql_connect ('localhost',$username,$password) or die(mysql_error());
-
You being dumb has happened alot in this thread, huh lol
Now I get this:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: YES) in C:\xampplite\htdocs\xampp\site\check.php on line 137
Access denied for user 'ODBC'@'localhost' (using password: YES)
-
Yup
.. This is that chunk of lines
//Tell the script that something went wrong $pass = FALSE; } //If something went wrong, send them back to fix their mistakes if ($pass == FALSE) { die(); //They failed the exam //For some reason they have failed or check system //You will need to send the back to fix the problem before we continue echo "<meta http-equiv=\"refresh\" content=\"1;url=signup.php\">"; //I like to kill the script at this point. die(); } else { //They have entered all the required information //Their username, password, and email are acceptable
-
Stays at check.php
-
Same thing. No info entered.
-
It went to check.php and stayed. But I checked the db, and no info has been entered.
-
It goes to check.php then redirects me back to signup.php (w/o errors)
-
Username: ri
password: george
varpassword: george
email: [email protected]
What error did you get? (Username too short)
Then try:
Username: ritchie$%
password: george
varpassword: george
email: [email protected]
What error did you get? (Usernames may only contain alphanumeric characters, dashes (-) and underscores (_))
Now to try the passwords
Then try:
Username: ritchie
password: ge
varpassword: ge
email: [email protected]
What error did you get? (Your password was too short!)
Then try:
Username: ritchie
password: george$
varpassword: george$
email: [email protected]
What error did you get? (Passwords may only contain alphanumeric characters.)
Then try:
Username: ritchie
password: george
varpassword: ritchie
email: [email protected]
What error did you get? (Your passwords did not match!)
Now for the email...
Then try:
Username: ritchie
password: george
varpassword: george
email: r2
What error did you get? (You have entered an invalid E-mail address.)
Then try:
Username: ritchie
password: george$
varpassword: george$
email: ritchie@ge#&(!ge.net
What error did you get? (Passwords may only contain alphanumeric characters. and You have entered an invalid E-mail address.)
-
But then I just would of had the script without any knowledge of it. Atleast this way, Im learning hands-on whats wrong
-
Alright, got it! (its obviously empty right now).
Now, whats causing this info not to get entered when I signup on signup.php?
-
And how will I know if they're info has been added to the database. I've been looking over the phpmyadmin, and Im trying to guess where the info would pop up, but dont see a logical place.
-
Already fixed that cause I got an error.
Now when I do !$ in the fields it comes back and says username and all that was too short. YAY!
But .. when I enter actual information, it redirects back to signup.php (w/o it saying username was short and such)
-
LMAO .. trying now.
-
$check = $db_object->query("SELECT username, password FROM student WHERE username = '".$_POST
Thats line 35. Could it be the -> before the query?
Sorry for intruding, but Im trying to learn myself
[SOLVED] Forget password script
in PHP Coding Help
Posted
Thanks.