<?php
$dbh=mysql_connect ("localhost", "equestra_test", "password") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("equestra_members");
$username = $HTTP_POST_VARSї'txtName'];
$password = $HTTP_POST_VARSї'txtPassword'];
$rs = mysql_query("SELECT * FROM myUsers WHERE Name = '$username' AND Password = '$password' ");//if the user exists if (mysql_num_rows($rs)>0){ //make a cookie for the user setcookie("loginname",$username);} ?>
If anyone can help me in any way that'd be very helpful
if you open you .php file with notepad and go to edit and "Go To" and u choose your line it will take you to it or with any php editor it has the line numbers on the side
$rs = mysql_query("SELECT * FROM myUsers WHERE Name = '$username' AND Password = '$password' ");//if the user exists if (mysql_num_rows($rs)>0){ //make a cookie for the user
$rs = mysql_query("SELECT * FROM myUsers WHERE Name = '$username' AND Password = '$password' ");//if the user exists
if (mysql_num_rows($rs)>0){ //make a cookie for the user