Jump to content

RitchieGunz

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

Everything posted by RitchieGunz

  1. 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: ritchiegunz@hotmail.com' . "\r\n" . $message = "Hi Fellow Member"; $message .= "Your password is \n"; $message .= $password; mail("$headers","$email","$front_password","$message"); $showtable = false; } } ?>
  2. I can finally do the dishes, they've been sitting there since yesterday, lmao
  3. 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
  4. 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
  5. Goes to check.php and stays. Its blank and nothing added to db
  6. OMG! lol Parse error: syntax error, unexpected T_ECHO in C:\xampplite\htdocs\xampp\site\check.php on line 148
  7. 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
  8. Parse error: syntax error, unexpected T_EXIT, expecting ',' or ';' in C:\xampplite\htdocs\xampp\site\check.php on line 149
  9. 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
  10. Its for this line: //Connect to the database $connect = mysql_connect ('localhost',$username,$password) or die(mysql_error());
  11. 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)
  12. 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
  13. It went to check.php and stayed. But I checked the db, and no info has been entered.
  14. It goes to check.php then redirects me back to signup.php (w/o errors)
  15. Username: ri password: george varpassword: george email: ritchie@george.net What error did you get? (Username too short) Then try: Username: ritchie$% password: george varpassword: george email: ritchie@george.net 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: ritchie@george.net What error did you get? (Your password was too short!) Then try: Username: ritchie password: george$ varpassword: george$ email: ritchie@george.net What error did you get? (Passwords may only contain alphanumeric characters.) Then try: Username: ritchie password: george varpassword: ritchie email: ritchie@george.net 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.)
  16. But then I just would of had the script without any knowledge of it. Atleast this way, Im learning hands-on whats wrong
  17. Alright, got it! (its obviously empty right now). Now, whats causing this info not to get entered when I signup on signup.php?
  18. 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.
  19. 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)
  20. $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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.