Library management system part 18 | Starting SESSION, login & logout user with session

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Online Library Management system -part 18. login & log out with session
    Website design tutorial.
    student_login.php :drive.google.c...
    navbar.php: drive.google.c...
    🎉🎆🎇📢📢 If you want to learn more about this Library Management System project, then read this article bit.ly/2s6n4l8 . This website will have these features mentioned tn the article above.
    Here I’m going to show you all about Web based library management system project using mostly HTML,CSS, PHP and MYSQLI Database. But I’ll use a little bootstrap and javascript in some pages to make our website look more beautiful. You can take help from these videos and make your own project easily. In the beginning I’ve made most of the pages of online library management system step by step in html, now I’m adding PHP & MYSQL to connect to database.
    Visit my blog: bestece-projec...
    Twitter : Twitter: / ece_projects
    #WebsiteDesign #OnlineLibraryManagement

Комментарии • 62

  • @a.f.hdhrubo8459
    @a.f.hdhrubo8459 2 года назад

    My login page is not working & welcome amd logout button did not showing.What should i do. can you please help me

  • @starlintirkey1779
    @starlintirkey1779 2 года назад

    Ma'am I have a Fatat error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB version for the right syntax to use near "admin" at line 1 in C:\\ stack trace:#0
    :mysqli_query(Object(mysqli), 'SELECT username...') #1{main} thrown in C:\ registration.php on line 59

  • @shuvamdas860
    @shuvamdas860 4 года назад

    My coding is right but this portion (welcome c part) is not showing.... please help me....I can't find the error..

  • @sriparnapanda6188
    @sriparnapanda6188 5 лет назад +1

    Nice.....,.

  • @kamilshaikh3525
    @kamilshaikh3525 2 года назад

    Please help I have to complete college project in only few days
    Warning: Undefined array key "login_user" in D:\xampp\htdocs\library\student\index.php on line 41

  • @spardhavarshney9814
    @spardhavarshney9814 4 года назад

    Mam my logout button is not working it is showing server error and error 500 only for this page...I did the same as you did plz help me out

    • @ece_projects
      @ece_projects  4 года назад +1

      Here's the code. Check if you have made any mistakes.

  • @hariharamuthumarishp6229
    @hariharamuthumarishp6229 3 года назад

    Warring : understand array key "login_user" in c:\xampp\htdocs\library\index.php on line 23
    What is this error and who to solve it ?

    • @hariharamuthumarishp6229
      @hariharamuthumarishp6229 3 года назад

      Please sister 🙏 I don't know what to do with this error

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      Hey, did you find any solution to this? Please help I need to submit my project and i'm stuck :(

  • @poorvibafna4424
    @poorvibafna4424 3 года назад

    If I have not included the navigation.php the wat shld I do so that I get information on every page of login n logout. Pls reply soon @Electrical & Computer Engineering Project.

    • @ece_projects
      @ece_projects  3 года назад

      You need to create different session variables for the data that you need to access. Then use those variable anywhere you need.

    • @poorvibafna4424
      @poorvibafna4424 3 года назад

      A separate code itself???? @Electrical & Computer Engineering Project.

    • @ece_projects
      @ece_projects  3 года назад +1

      No just the variables that you need. Everything else is same.

    • @poorvibafna4424
      @poorvibafna4424 3 года назад

      @@ece_projects thnkyou👍❤️

  • @nimraahmad4289
    @nimraahmad4289 4 года назад

    There is a problem it's giving undefined login_user ......As i have right the same code .

    • @ece_projects
      @ece_projects  4 года назад +1

      Have you started your session above the page? Also check the session variable name if you've given some other name instead of login_user.

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      Hey, did you find any solution to this? Please help I need to submit my project and i'm stuck :(

  • @ZerinRubayaMunim
    @ZerinRubayaMunim 3 года назад

    same problem for undefined login_user.i tried in many way but it cant work.

    • @ece_projects
      @ece_projects  3 года назад

      It occurs when a variable is used somewhere without defining it beforehand. Have you forgotten to start session at the beginning? Or have you named your session variable something else? Recheck these 2 things .

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      Hey, did you find any solution to this? Please help I need to submit my project and i'm stuck :(

  • @nitinbiradar3305
    @nitinbiradar3305 3 года назад

    mam im not getting the logout option after login still im getting login and signup option
    plz help me out mam plz plz

    • @ece_projects
      @ece_projects  3 года назад

      You need to create logout button inside the if condition and others outside the if condition

    • @nitinbiradar3305
      @nitinbiradar3305 3 года назад

      @@ece_projects mam in code should I use

  • @hariharamuthumarishp6229
    @hariharamuthumarishp6229 3 года назад

    Please can you say what to do now

  • @manojkumarr7299
    @manojkumarr7299 3 года назад

    Thank you so much this was very helpful....
    But I'm getting error as "Undefined array key "login_user" in index.php"
    Plz help with this....

    • @ece_projects
      @ece_projects  3 года назад +1

      Have you started session on the index page? The page isn't recognizing your session variable on index page

    • @graceAndFrankie72
      @graceAndFrankie72 3 года назад

      Remove the underscore ,it worked for me

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      @@graceAndFrankie72 still not working for me. Any idea how to solve this?

    • @pricinculabrianjadeb.5793
      @pricinculabrianjadeb.5793 Год назад

      @@ece_projects same error.. how to solve tthis?

  • @shuvamdas860
    @shuvamdas860 4 года назад

    I don't know what to do.... please help me

  • @shuvamdas860
    @shuvamdas860 4 года назад

    Error is "undefined variable: _SESSION".....

    • @ece_projects
      @ece_projects  4 года назад

      Have you created the session variable? Your program isn't able to find the variable name. You need to create the session variable like I've shown in the video. And also check if u have started session at beginning of your code

    • @shuvamdas860
      @shuvamdas860 4 года назад

      I do it. But new problem is when I have enter username, password than redirect index page, but This index page does not belong to that user and not showing username also.

    • @shuvamdas860
      @shuvamdas860 4 года назад

      This index page does not belong to that user because The video will show you the username and password for the spoken boolean and the logout will be an option, but showing a student login option. I think it's entered ELSE condition, not to entered IF condition. Please help me.

    • @ece_projects
      @ece_projects  4 года назад

      Check your email again. Your login page had errors that's why the session variable was not created.

    • @shuvamdas860
      @shuvamdas860 4 года назад

      @@mahithad8539 yes...I can solve this prblm...

  • @mohdsibratuddin7957
    @mohdsibratuddin7957 4 года назад

    the code is not working

    • @ece_projects
      @ece_projects  4 года назад

      Check your code. You must have written it wrong.

    • @mohdsibratuddin7957
      @mohdsibratuddin7957 4 года назад +1

      @@ece_projects yeah, I checked it's alright now

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      @@mohdsibratuddin7957 Hey, did you find any solution to undefined array key? Please help I need to submit my project and i'm stuck :(

  • @kamilshaikh3525
    @kamilshaikh3525 2 года назад

    Warning: Undefined array key "login_user" in D:\xampp\htdocs\library\student\index.php on line 41

    • @ece_projects
      @ece_projects  2 года назад

      You need to start session at the start of index page

    • @kamilshaikh3525
      @kamilshaikh3525 2 года назад

      @@ece_projects I tried the same earlier but there was no change. Then I tried adding session_start() at the beginning of login page. This resolved the error. Thank you so much!

  • @alishaanand7503
    @alishaanand7503 4 года назад

    Index.php me problem ho gya h
    Part 18 k coding k baad
    Notice: Undefined index: login user in C:\xampp\htdocs\library\student\index.php on line 39

    • @alishaanand7503
      @alishaanand7503 4 года назад

      Navigation bar aur image 3. K bich gapping h bahut

    • @alishaanand7503
      @alishaanand7503 4 года назад

      Mam please help it's my project work I have to submit it in few days
      Please help

    • @ece_projects
      @ece_projects  4 года назад

      You missed the underscore "_" between login_user

    • @ece_projects
      @ece_projects  4 года назад

      If there's gap before something add negative Margin on top of it. Let's say the image is in body tag or a div tag. Then add style=" margin-top: -20px;" inside that tag like how we add normally

    • @alishaanand7503
      @alishaanand7503 4 года назад

      Mam line 39 ka problem solve ho gya

  • @hariharamuthumarishp6229
    @hariharamuthumarishp6229 3 года назад

    Hi