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
~131 People Reached
Favorite Forums
Favorite Tags
php x 2
Member Avatar for tahir_bsit

[code=PHP]<?PHP @session_start(); $userId=$_SESSION['userId']; if(!session_is_registered("userId")) { echo "<Script language=\"javascript\">window.location=\"index.php\"</script>"; } if(session_is_registered("userId")) { $userId=$_SESSION["userId"]; } ?> <?PHP require_once('conn.php'); $status=""; if($_SERVER["REQUEST_METHOD"]=='POST') { $username=$_POST['username']; $userpassword=$_POST['userpassword']; $qury="select * from login where username='$username' and userpassword='$userpassword'"; echo($qury); $res=mysql_query($qury) or die ("can not process the query".mysql_error()); $count=mysql_num_rows($res); if($count>0){ while($row=mysql_fetch_array($res)){ $userId=$row['userId']; $username=$row['username']; } session_start(); $_SESSION['userId']=$userId; $_SESSION['username']=$username; echo "<Script language=\"javascript\">window.location=\"APS.php\"</script>"; …

Member Avatar for silviuks
0
131