Click here to Skip to main content
15,916,432 members

Comments by Member 12895537 (Top 11 by date)

Member 12895537 18-Nov-17 19:02pm View    
I just need a solution. Why are you so complicated to help me to answer and many rules? This is place to help developer and It was still under this topic, why I should posted as a new one? . Can't you just help? You are not help me since yesterday, yet force me to figure out my fault. Feel stress here. Thank you for help.
Member 12895537 18-Nov-17 2:35am View    
Sorry, I don't get you Peter. Why I need separate account? admin will active or deactive the user. Active user can login to the user page. Already different page and account. Deactive cannot login. admin go to page admin. user go page user. It is in localhost. Problem now deactive user can login. and I need solution for that if else statement. Show me some example or help me to understand how can I correct my if statement?
Member 12895537 18-Nov-17 1:22am View    
Show me the right one. I know that statement is wrong and logic is whttps://www.codeproject.com/WebControls/#rong, because of that I ask here and need a solution or idea.I cannot figure out that statement by myself. Please, Give me some solution or idea for that if else.I need some help
Member 12895537 18-Nov-17 1:12am View    
I already follow the flow. I know is wrong. That why I ask because I did not know how to figure out this. Can you help me to show the right logic? Do not force me to figure out because I really have no idea how to correct it.
Member 12895537 17-Nov-17 23:21pm View    
I already adjust and tried it to be one condition, however it remain error . That is also my problem , I did not know how to locate it..I try to figure out by using if...else if..else and I play the condition still error. I remove { and also add } still error..then how to solve it? any solution?

syntax error, unexpected '{', expecting '(' in C:\xampp\htdocs\workshire\accountivate\index.php on line 37

if($roles =='admin') {
					header("location: admin/index.php?logid=$res_id");
				}else 
					if {
						$_SESSION['id'] = $res_id;
					header("location: admin/indexEmp.php?logid=$res_id");
				}
			
				else ($curr_status=='Deactive') {
					$message = "Sorry $user_email, your account is temporarily deactivated by the admin.";
				}