zombie_002 Posted September 26, 2006 Share Posted September 26, 2006 Hi, I am starting a new website with php (DUH" lets not state the obvious here") and when someone comes to register on my website it says thank you for registering and you will recieve and email with 24 hours. my wife tried and i tried with 3 different email accounts (yahoo, hotmail, and vcn.com) and none of them recieved any emails back at all for registering on my website. Could someone please help me figure this out. The only that has been installed from the begining is phpnuke7.9 and 1 new theme. I would appreciate anyone's help thank you. Quote Link to comment Share on other sites More sharing options...
AdRock Posted September 26, 2006 Share Posted September 26, 2006 Have a look at this tutorialhttp://www.phpfreaks.com/tutorials/40/0.phpIt's a members system that sends an activation emial Quote Link to comment Share on other sites More sharing options...
zombie_002 Posted September 26, 2006 Author Share Posted September 26, 2006 I was looking through your forums and found this [quote]<?php// connect to database$conn = mysql_connect("localhost","www2","accuoffice");//select the database$db = mysql_select_db("accu") or die( "Unable to select database");// Create variables from URL.$userid = $_GET['id'];$code = $_GET['code'];$query = "SELECT * FROM users WHERE userid='$userid' AND password='$code' LIMIT 1";$result = mysql_query($query) or die("There's some problem with the query.");$row = mysql_fetch_assoc($result);if (!$row){ echo "<strong><font color=red>Your account could not be activated!</font></strong>";}elseif ($row['activated'] == 0){ echo "<strong>Your account has been activated!</strong> You may login below!<br />";}else{ mysql_query("UPDATE users SET activated='1' WHERE userid='$userid' AND password='$code'"); echo "<strong>Your account has been activated!</strong> You may login below!<br />";}?>[/quote]was just wondering if that would work, for registering and activating a user. if it would work how do i use it ???? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.