Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (139)

Sign In or Sign Up now to post a comment!
  • I get the error: net::ERR_TOO_MANY_REDIRECTS

    How can I solve this problem?

  • hello Adam Ur tut was awesome i love it but pls how can i download ur source code

  • Oh dog, It seems I have too old php version on my freebsd 7.1. It caused some problems with the preg_replace. Im gonna try to install some extensions.

  • i have a problem of

    too many loops

    what to do ???

  • Hey bro! first of all, thanks for exelente tutorials!

    im having some trouble logging in to my Admin section here... the form comes up great and i insert my username and password but it shows me the error message saying that my log in info is incorrect... what could be the problem?

  • Anybody knows where to get the code, dont want to type it all in by myself and make mistake over mistake...

  • so many glitches in this shit i cant get it to fucking work.. i'm pissed cuz i copy and paste the your php from the final version and it still have many problems

  • Hi, I am still having the problem with the admin_login.php redirecting loop. After entering the credentials I am being redirected to the same page will the credentials being cleared, I have checked for the if isset on the admin_login.php and the if !isset on the index.php...it's correct...can anyone offer some assistance

  • @flamingforever I had the same problem. just trying to think what i did to fix it.....

    Just try putting

    ob_start(); at the very top of your code and

    ob_flush(); at the very bottom

  • @WillWarHero Sorry I am a PHP noob. Can you specify exactly where I should place the code? Do you mean within the first PHP block ie. the Session block

    eg.

    ob_start();

    session_start();

    if(isset($_SESSION["manager"])­){ header("location: index.php"); exit();

    }

    ob_flush();

    And should it be on both the admin.php and index.php?

  • @flamingforever I put in most of the files that have headers in. but yeah i put them at the top

  • @WillWarHero using the ob_start(); and ob_flush(); hasn't helped. Any other suggestions? Any help is appreciated. Thanks

  • :] 00:43

  • :]

    

  • I had a question about the admin login section/

    For some reason, my domain continues not to acknowledge my databases and continues stating error message. When I try to login, it fails, with proper login information.

    Wondered what am I doing wrong?

    Thanks!

  • @LadiDipset1 can you put an example of your login info with a different pass word?

  • @WillWarHero my admin login?

    username: Cinnamon

    password: styles101

    also, my logo shows as a broken image on my store admin page. must i put the full link then public.html/style/...?

  • Hi, I cannot access either admin login page or index page in the storeadmin folder.

    The error I am getting says:

    "The page isn't redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

    Anyone has a solution to that error?

    Thanks

    P.S. Great Videos, Thanks and keep up the good work.

  • @1111TP1111 I have the same problem, dude.. Did u find the answer? Can e-mail me at krysteff@abv.bg

  • @1111TP1111 In fact i just realised what i was wrong with... :))) (happy) (party) :D

    You know, in index.php and admin_login.php the first block with php MUST NOT BE ONE AND THE SAME !!!! Check if you copied the one to the other file :D and if you do just write the correct php code that is shown in the tutorial by Adam ! ((:

  • Comment removed

  • You don't have to put the full URL to the links, just put "/" it's the root path.

  • if(isset($_POST["username"])&& isset($_POST["password"])) function returns always false during page load so as far as we dont have the else statement of the outer if loop it reloads the same admin page i think...

  • does anyone know there is a redirect loop?

  • @WillWarHero is that redirect loop happens when you add session with mozilla like andrew say?

  • @BlakMetall cheers bro i worked it out a while ago. cant remember what it was though :P

  • also like my page beatsonthego.co lol coming soon 2012

  • hey man thx alot for the info im learning alot more than i ever did at school.. i was wondering if you have a simple kart scrpit so i can sell digital downloads. im using godaddys mql and also paypal..and i need someway to give my music to the buyer when they are done paying for my music...do you have any quick scripts or videos....if so hit me up i dont mind doing the work i just mind paying for third party karts lol

  • I'm using localhost(MAMP). and whenever ,

    I test adminlogin.php and index.php in the browser ,

    it gives me this message "The page isn't redirecting properly",,

    can anyone help me please ??

  • I love your tutorials. Thank you very much,

  • great tutorial!!ur a savior!!

  • i tink you missed the log out part

  • I can not login and password for admin_login. The page is blank with nothing happening, I've done everything.

    've Cleared my browser, my cookies, already tested it with 3 browsers, and nothing.

    I use the same HostMonster that ADAM uses. Ja connect_to_mysql configured correctly and did not work.

    Please ADAM and everyone who can help me. Help me, do not get out of it and can not continue with the tutorial.

    Thanks for any help.

  • @411cacasmarao @411cacasmarao i have also problem with that..did you find out what is wrong ?

  • hi, i can't see this video.. what means that is private?

    thaks a lot

  • Where do I download the coding for this site...

  • @marvinyale32 Please let me know when you find that out please e-mail me at chrismtz@q.com. Thanks

  • Nice video! Check out our channel for lots of Easy Help Zen Cart Video Tutorials. We are adding new ones daily!

  • hello, when I go to enter your username and password to admin_login I get the message error, even if accurate, are the data I entered into the database .. what could be the problem?

  • When I test the page after I hit the submit button it just redirects to the same page. It does the same thing if I enter the correct or incorrect username and password.

  • please help when i type my username and password and hit log in button it redercts to admin_login.php itself..... how to fix dis???

  • Im having Redirect Loops Problem at this point with the admin Page.... nothing comes up except the errors in Chrome and firefox.. ima sleep on it but aahhm if anyone here has any idea what could be wrong just comment on this post... peace

  • please help when i type my username and pass and hit log in button it rederct my again to admin_login.php...... how to fix where is problem maby its xamp problem?

  • @vadimasPK im having d same problem!! dis u find a solution?

  • @gaya964

    Actuly yes, i downloaded all codes from website and checked for the mistakes, it hellped:D

  • hello sir

    my probl is that when open admin_login.php after that i put username n password n try to login to so i got this error :

    Warning: Cannot modify header information - headers already sent by (output started at /home3/mybaazar/public_html/st­oreadmin/admin_login.php:8) in /home3/mybaazar/public_html/st­oreadmin/admin_login.php on line 23

    so can u please tell me where is the error n reply me on sunesara_sahil@yahoo.com thnx you sir

  • @sahilsunesara

    I have had the same problem... I fixed it by putting ob_start(); and ob_end_flush() in the beginning and end of the first php part....I'm a php noob so if this is in wrong or unsafe in any way please correct me...

  • i apologise if in further lessons you correct this ..I am a beginnner but i think session variables dont get created in browser. a session id gets created but all the variables you are creating using _Session say only on the server .

  • I dont get it you are sanitising your manager , password and id server side variables which as I understand dont get transfered they get created in your server and stay there and that list of server side variables is linked to a cookie (say id that makes sense only to webserver) . so if people can change variable in their browser they will only change that id and if that refers to another set of manager , username and id on ur server ..it still is on ur server the data itself is same

  • dude admin index aint working for me upload code somewhere i think i typed something wrong

  • god you're more epic than thenewboston and phpacademy xD :D

    thanks dude (y)

  • Hey Adam Great Tutorials so far... For everyone that wants to know like i did if you want the codes go to the last tutorial which is Part 20 and there is a link to the files with the codes

  • where is the download located?

  • where is the code located?

    

  • I'm really enjoying this tutorial. I do have a question though. Video shows this programming line in the Admin/index.php:

    $managerID = preg_replace('#[^0-9]#i',",$_S­ESSION["id"]);//filter everything but numbers and letters

    There is one too many or one less quotation marks missing. I can't seem to find which it is. Can anyone help?

  • ahw thank god.. was waiting for you to say: you can choose to hash this password. This turtorial will definitely help me out.

  • Extremely thankful to you Adam for these tutorials. However, I am having problems with this lesson to work with my site. Went as far as changing my values to match yours so that all I would have to change after copy/paste of your code is the "include" script.

    After "submit", I can see that the browser goes to the index page but I get redirected back to admin_login. I'm guessing "manager" isn't getting set but I've copied your code for both admin_login & index. 

    Please help.

  • It was my server side that was the problems. After talking with them, they said "I have noticed that the session.save_path was not set in your account" and set it for me. I'm new to php./mysql and didn't know what that meant. In any case, for those of you that are having trouble, check with your web host. There is absolutely nothing wrong with Adam's code.

    Adam, thank you again for such a great tutorial.

  • Great tutorials man... thanks so much for doing this. I can now get started on the project I had no idea how to build. Cheers. Ed

  • I finally got it to work after I cleared my browser history, corrected the path to connect_to_mysql and made sure the isset function looked like this in both pages: admin_login.php (isset), index.php(!isset).

    Thank you so much Adam for all of your tutorials. You are a very kind and generous person. I am learning a lot.

  • Comment removed

  • for those of you with the redirect error, in index and store_admin.php there needs to be a session_start(); the index page on his download was missing this.

  • Help me please!

    I don't have coding errors, i have just the exac same code as Adam, and the browser doesn't report any error.

    The thing is that when I try to log in, it does not redirect to de index page of the storeadmin, it just stays in admin_login.php

    Please, someone tell me what am I doing wrong!

  • thank you Adam more power

  • can't I just skip this part if I am the only one managing?

  • Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

    May i know how should i solve this error?

  • Ive seen repeated comments asking for the code for each video, are you going to post it anywhere and link us to it?

  • people with the preg_replace errors:

    . it took me some foolin' around to find that it was this part: '#[^A-Za-z0-9]#i', '',

    Notice that the final quotation looks like a double quote?

    Well.. if you stick your cursor in there and move from character to character... it's actually two single quotations. Change your code and it should work!

  • @xkriswithakx OMG IT WORKS !!! thank you so much

  • @xkriswithakx Thanks :)

  • Thank you for the tutorials, but i have encountered this problem where after i logged in username and password it redirect me back to admin login page. Can anyone help me please. thanks

  • the link of source code is available at the 20th episodes description

  • Error 310 (net::ERR_TOO_MANY_REDIRECTS)

    Anyone with solutions??

  • @mrzsmith812

    Check in admin_login.php under session start(); if the value of isset is "!", that may be it, i'm not sure but if it is then delete the "!"and leave it just simple "isset". Hope that helped

  • I am stucked, and cannot go to the next tutorial. I am in need of these two scripts. In the admin_login.php script how numbers and characters are filtered, what is written inside preg_replace method/function brackets please let me know.

  • Can anyone tell me where admin_login.php and index.php is? I want to download.

  • Hi Adam.

    Do you know when the code is going to be up for download?

    Thank u man... lol.

  • is the login script safe? can it prevent mysql injection?

  • Can Anyone send me scripts for admin_login.php or index.php...

  • Comment removed

  • parse error: syntax error, unexpected "", expecting T_STRING or T_VARIABLE or T_NUM_STRING in index.php on line 9

    does anyone know how to solve this error? help please

    thnx

    ali

  • @alishakil91 Make sure there are no little errors (^ or spaces) and then the permissions should be 755.

  • @alishakil91 @alishakil91 I had the same problem. Try removing ," from lines 8,9,10

    I am having another problem in admin_login.php. When i am trying to include the connect_to_mysql.php i am getting an error and i don't know why. Any ideas?

  • Dear Adam:

    I have finished part 2 and started part 3.

    Can you please let me know where from i can get the scripts for admin_login.php as well as index.php

    Please reply...thanks...

    thanks again for nice job...

  • Hmm... I followed your directions, and the form seems to be working, though everytime I try to login using the username I created through the admin table I receive an error message. The other problem is that I can only retry logging in after I've refreshed my browser cookies, otherwise I'm stuck with nothing.

  • help plz

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a6745861/public_html/sto­re_admin/admin_login.php on line 15

  • @webbman11 <-- if you write "or die(mysql_error());" behind you will see that some of your parameters in your query is incorrect.. probably a fieldname in your query that is not the same name as your database tabel name

  • how did you solve the redirect problem?

  • I am having trouble running the store admin it gives me an error Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

    I have check line by line but dont see nothing that could be causing this any help will be appreciated.

  • does anyone have the source codes!?????

  • Hey Adam I'm having some problems with admin_login.php and index.php it says

    Warning: Wrong parameter count for preg_replace() in /home/vside/public_html/test/s­toreadmin/admin_login.php on line 11

    Warning: Wrong parameter count for preg_replace() in /home/vside/public_html/test/s­toreadmin/admin_login.php on line 12

    That information is incorrect, try again Click Here

    Help please!!!

    Chris

  • Comment removed

  • you rock adam!

  • How do I stop my MySQL and Apache from running in the background on the Xampp control panel? I tried clicking the stop buttons, but it keeps saying error. I would appreciate your assistance, thank you.

  • thanks

  • Doesn't this login store raw text into a session cookie ($manager and $password) which can be inspected by session snooping tools? I'm new to this, but I'm just a bit curious about the accessibility of the data in the session variable(s).

  • well, i'm a newbie in this php programming...i follow since video 1 & 2 & that works well...but in this 3 step, still my dreamweaver cs5 says that an error in syntax code...pardon me if i'm newbie...somebody could help me out? thx&regards,

  • No logout part? :O

  • Ok new problem, the pages load but...it's not allowing me to login. :/ When I go to log in it says the information is incorrect. I double checked inside myphpadmin and the username/password is correct... bah

  • @ghanes14 i the exact same problem

  • Hi, I just came across your video's a few days ago and want to thank you for taking the time to go into detail on all the steps! I am attempting to type out the code as I watch the video so maybe I'll remember the stuff better (like writing out spelling words in school).

    I've hit a pot hole though maybe you can help me figure out, I have typed out the code from this video and put it in the pages, but when I go to view them in my browser I keep getting a loading "redirecting" error, idk why.

  • @ghanes14 never mind I finally figured it out! Yay I can move on to the next step after just a couple CSS tweeks. There was a stray "!" in the session php code.

  • @ghanes14

    Hey, I'm having that same problem you had with the admin_login.php page. I get an error message saying the page isn't redirecting properly. Sorry for bugging you but how did you fix this problem? What did you tweek in the coding?

  • @vjoho I have went through and fixed many errors that I can't remember now. I just had to keep comparing and noticed extra spaces or symbols for the most part.

  • lol, andy parker highly doubting alex. alex is mad crazy yo.

  • THE CODE WILL BE POST AFTER ADAM FINISHED THE TUTS. HE'S IN THE 9TH PART AND NOT FINISHED. PATIENCE. PATIENCE

  • Has anyone found the code yet?

  • Hi I cant see the CODE anywhere, ANYONE know where it is?

    Please HEEEEEEELP!

  • Comment removed

  • when will ya put the codes???

  • Hi, what is the risk of using dreamweaver's wizard to build this cos that is what I did, adapting your steps...will the site still be vulnerable? And how can one include some security checks in-between the codes (php code) generated by dreamweaver to limit attacks to the site?. Thanks

  • hahaha allmost fall from my chair while listening to first 60 secs ×DD

  • bravo again adam......I HAVE ONE SMALL REQUEST....COULD YOU SHOUT OUT(say hi to) MARLON LEWIS FROM GRENADA IN YOU NEXT VIDEO LOL....THX BRO. excellent work.

  • great tut so far. I have one suggestion on what I would do here

    Ide make a vars.php in storescripts. Have things like $siteurl = 'siteurlhere'; and things like that...I have that as an example because u can use full paths with href= etc with $siteurl

    maybe you thought of this for part 4 but I thought ide mention it

    keep em coming adam your tuts r always the best!

  • My php scripting issue with my hosting company, They fixed the issue.

    Thank you,

    Eric

  • Adam,

    I do have an issue with my hosting company, They said they did not support php script to create a data base. I was able to successfully connect to my data base after they corrected an issue on their side but I got an internal server error when trying to run the create_products_table.php, and create_admin_table.php files. Help ! Can you show me how to do it manually or advise me on what I should do ? So far I have been able to follow everything you have shown us.

    Thanks,

    Eric

  • This tutorial is the reason people should not spend $6,000 on StoresOnline's Platinum package or $30 per month to host a site with those scam artists.

  • Thumbs up!

  • Very good instruction and you make learning fun. Thanks Adam.

  • isn't easier to let admin table out and just create a normal login for all user and make a level acces ? as u can use a link in header that checks in table if level of account is 9 and this would be admin ? coz in this way , i know ppl which watch this will have the link to admin store but still , if u publish this as open source ppl need a link to admin UI and u would need make it in this case a public link. what is not really secure.

  • I like it ! I concur with all .  I just found you and this is outstanding !

  • Man, I love you. :> This is about 40 videos I've watched. Alongside learning C++ through the RnP, PHP from the manual, and some independent code review, you've pushed me to pursue perfection in something I enjoy doing. I have the confidence to work in a professional capacity in an accountable manner.  Thanks.

  • i've said it b4 and i'll say it again, dude, i learn so much from u than i do in college... u should write a book or something, i'd buy it

  • I haven't been so excited for christmas since I was a little kid! :-)

    I can't wait.

  • I like to have everybody know that its important to support this kind work provided to us free, NO MONEY! So please recognize.

  • good job Adam! You really are amazing! Really thanks alot :)

  • Man i have to say, you rock, this makes so much sense then some other tutorials i've seen.

  • u are amazing man :)))

  • Hehe! Great!

  • Hehe! Great!

  • Comment removed

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more