kellynovice Posted January 25, 2007 Share Posted January 25, 2007 I have a php programme which I have followed all instalation instructions .... yet when I click onto the admin section of the programme it says wrong password. I changed the password to my choice on config.php as instructed and uploaded the file.I know that someone will probably need to see part of the code, but I don't know which part .... if you let me know I will be happy to cut and paste it for some "genius" to look and know exactly whats wrong!I am a complete novice and have no idea what to look for.Someone please help .... pleaseKelly Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/ Share on other sites More sharing options...
kellynovice Posted January 25, 2007 Author Share Posted January 25, 2007 looking at all the other posts here I think maybe this is too much of a simple problem .... sorry if I sound completely lame! Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169132 Share on other sites More sharing options...
Shattered Posted January 25, 2007 Share Posted January 25, 2007 For me the quickest way to get PHP up and running with no errors, was to download a program called WAMP. Suggest you give it a shot :) Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169137 Share on other sites More sharing options...
kellynovice Posted January 25, 2007 Author Share Posted January 25, 2007 WOW That was quick.I ahve loaded it all ok and it is working fine .... the only thing is when I try to log into the admin section is keeps telling me that I have entered the wrong password .... I can't be though, as I set the password. I have tried everything. I think there is a part in the script that is wrong, not set to log in once the password is entered?? Anyway I have no idea where that part would be in the script.As you may have already noticed, I am not very good at this! But thank you for your suggestion. Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169141 Share on other sites More sharing options...
dgiberson Posted January 25, 2007 Share Posted January 25, 2007 is the password set in the database? if so did you just type it in i.e. password = phpfreaks, so you see phpfreaks next to the username? search the login page for md5 and see if it is trying to compare the password you type using a md5 hash..... if that is the case update the table (in phpMyAdmin or Query Browser) with something like:UPDATE users SET password = md5(phpfreaks) WHERE username = 'admin'now the password will look like a big jumble of numbers and letters..... Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169151 Share on other sites More sharing options...
kellynovice Posted January 25, 2007 Author Share Posted January 25, 2007 hmmm ... I think you spoke spanish to me ! Sorry :-[From what I can see the part thats not working properly is this bit below .... is there something in there that is not accepting the password?<?php ob_start(); include('../config.php'); include('header.php'); $ax=$_GET["ax"];/////////////////////// Table Installation/////////////////////if($HTTP_COOKIE_VARS["admin_log"]=="in"){ echo "<p class=\"bodymd\">[ <a href=\"".$PHP_SELF."\">Link Admin Home</a> | <a href=\"".$PHP_SELF."?ax=addcat\">Add a Category</a> | <a href=\"".$PHP_SELF."?ax=add\">Add a Link</a> | <a href=\"".$PHP_SELF."?ax=logout\">Logout</a> | <a href=\"".$PHP_SELF."?ax=install\">Install Affiliate Directory</a> ]</p>"; if($ax=="install") { Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169157 Share on other sites More sharing options...
dgiberson Posted January 25, 2007 Share Posted January 25, 2007 You'll need to find the page where $HTTP_COOKIE_VARS["admin_log"] is actually set from the login script. Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169162 Share on other sites More sharing options...
kellynovice Posted January 25, 2007 Author Share Posted January 25, 2007 I think it is from the config.php file .... thats where I entered the website variables.Or am I totally way off now? I am really grateful for your help and I'm sorry I am such a blonde!Everyone had to start somewhere (or so they say! :) Perhaps I should just quit now! Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169176 Share on other sites More sharing options...
Shattered Posted January 25, 2007 Share Posted January 25, 2007 Dont quit, you never learn that way.When Im just outright lost though on whats going on, I just uninstall everything I worked on, and start with a fresh slate and see if I might have forgotten something somewhere.From one beginner to another :D Quote Link to comment https://forums.phpfreaks.com/topic/35700-help-why-wont-it-work/#findComment-169181 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.