i have a problem,i log in even though im not registered in database,
please help me urgent!!!!!!!!!!!!
RainaAnja
-3
Light Poster
Recommended Answers
Jump to Posthave u connected with database for the registration form
Jump to PostCan you show me your code ?
For reference Click Here
Jump to PostTry this
<?php include 'connectMySql.php'; session_start(); if(isset($_POST['login'])) { $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); if($username && $password) { $query = "SELECT * FROM users WHERE username = '$username' AND password = '$password'"; $result=mysql_query($query); $count=mysql_num_rows($result); if($count>0) { $_SESSION['username'] = $username; $_SESSION['password'] = $password; header("location:members.php"); } else { header("location:index.php?notify=Incorrect …
All 9 Replies
mohan@nano
0
Newbie Poster
RainaAnja
-3
Light Poster
Bachu
45
Newbie Poster
RainaAnja
-3
Light Poster
Bachu
45
Newbie Poster
RainaAnja
-3
Light Poster
mohan@nano
0
Newbie Poster
RainaAnja
-3
Light Poster
mohan@nano
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.