Jump to content
Sign in to follow this  
unknown

Afisare sesiune in index cu PHP?

Recommended Posts

@gadeas

am si o intrebare , am 3 pagini (1.index, 2.login,3.dashboard4.header ) headeru este connectat la toate infara de login , bun eu am facut in header o imagine care apare cand este in session , deci o sa apara doar in dashboard , dar cum fac sa apara si in index cand esti in session si cand nu esti in session sa nu mai apara,

am incercat sa pun session_start() si sa folosesc if la imagine , dar cand sunt in index delogat imi da o eroare

Notice: Undefined index: login_user in C:\xampp\htdocs\panel2\header.php on line 141

(scuzati de greselile gramaticale)

 

a da am uitat sa precizez ideea este ca eu folosesc session sa arat o variabila din baza de date si langa imagine apare si aceea variabila pe care o arat prin session

Edited by unknown

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...