Hey I get this error when clicking on the login page:
Notice: Undefined index: email in C:\xampp\htdocs\files\website\login.php on line 19
Can someone please help me resolve this? Thanks!
Another great video tutorial from Adam @ Develop PHP and I've got everything working just great but the one thing that doesn't seem to work is the users profile pic. I've uploaded a photo to a mocked up account just to test the system and it has uploaded ok as I can see the .jpg sitting there on the server via my ftp client, but when I log in and load member_profile.php no image appears and just get the box with a ? in. Anyone else had this problem?
Well image posting script is really unsecyre..because if i will go tu users id catalog,for example if users id is 52 and his photo catalog will be 52 and then i go to pictures/52 and i will see all users photos,because folder 52 is not secure..without any index file..that secure issue we can sort if automaticly will be created index file in each new photo folder..
can somebody help. me why do i get undefined variable: for the username,country,state,city,accounttype and email. Sorry i can't fix it. im a beginner. I appriciate to anyone who knows how to fix it.
Found it!! Line 22 looks for the 'emailactivated' field in the db and I had named the field 'emailactivation'. A simple edit in phpMyadmin did the trick!
Hey can anyone help me with this error message I get when I click on "Activate Now" in the email: ACTIVATION RESULTS
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /data/26/2/131/139/2620302/user/2874549/htdocs/activation001.php on line 22
Your account could not be activated!
@ShazTheKing786 for starters why have you got ereg_replace? that should be preg_replace
2) have you checked your SQL connection, does it actually work?
3) can I see your HTML code? you said you were having problems with the form, this does not look like a problemed script to me
here is the code:
include_once "storescripts/connect_to_mysql.php";
// Get the member id from the URL variable
$id = $_REQUEST['id'];
$id = ereg_replace("[^A-Za-z0-9]", "", $id); // filter everything but numbers for security
if (!$id) {
echo "Missing Data to Run";
exit();
}
// Update the database field named 'email_activated' to 1
$sql = mysql_query("UPDATE members SET emailactivated='1' WHERE id='$id'");
// Check the database to see if all is right now
@mrtjs123 check what action you have assigned to your form, upon clicking a submit button it will use the forms action as its processing parameter, its likely you are linking to the page you dont need
@ShazTheKing786 hey can you send me your script, this error will have been pre defined by you somewhere in your script,
the elseif statement is counting if the doublecheck variable is greater than 0,
HI CAN YOU PLZ HELP!!!
when an activation link is send to me in email and i click on it i get this error and it does not activate my email:
ACTIVATION RESULTS
Your account could not be activated!
"; } elseif ($doublecheck > 0) { // Print a success message to the browser cuz all is good // And supply the user with a link to your log in page, please alter that link line print "
Your account has been activated!
Click Here to log in now.
"; } ?>
PLZ HELP :)
@ExposedHD Hi, I am going to be publishing a series soon on how to create an aestheticly pleasing site with just CSS and HTML over the next few weeks !:)
@XXTeamCORE can you send me your source code please? This error normally occurs when you havn't defined your variable properly (maybe you missed a semi colon) or you have not used the variable in the correct location...an index error wont stop the programme from working but it can cause you problems as it changes the behavior of the script.
Add me on skype if you need and I'll see if i can solve it....alexsims1992
Hey, can some one help me how to avoid this error message? it's making crazy..
Connected successfully
Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web093/b935/ipg.ocdeejaycom/dj/php_scripts/member_system/connect_to_mysql.php:6) in /hermes/bosweb/web093/b935/ipg.ocdeejaycom/dj/php_scripts/member_system/login.php on line 33
hey adam your vids are awesome but i have one problem when i click the submit button on the join form on my website it goes to a page that says Unknown column 'password' in 'field list' plz help me!