Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~151 People Reached
Favorite Forums
Favorite Tags
php x 2
Member Avatar for ersubhajit

I am getting this problem whenever I login from index.php to admin_area.php. I am giving the codes of the two files. Please help. Index.php [code=php]<?php session_start(); include("../lib/globals.php"); if(isset($_REQUEST['submit'])) { $u_name=$_REQUEST['username']; $pass=$_REQUEST['password']; $sql="select * from `user_table_master` where `user_name`='$u_name' and `password`='$pass'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $num_of_rows=mysql_num_rows($result); if($num_of_rows>0) { $_SESSION['logged_in']='y'; $_SESSION['user_type']=$row['user_type']; $_SESSION['user_formation']=$row['formation']; $_SESSION['user_name']=$row['user_name']; $_SESSION['name']=$row['name']; $_SESSION['user_id']=$row['user_id']; …

Member Avatar for guru12
0
151