PHP Login - Step 3
Top Comments
All Comments (48)
-
@semas11122 did u get a response to the mysql_num_rows(); statement?
-
How do i fix this issue?
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
-
@deadwing5 i had the same problem , after viewing like 100 php forums i finally have the script working. Change <? in the beggining of checklogin.php; login_success.php and logout.php to <?php . and change $username = ""; in checklogin.php to $username = "root" and you will have the script working INSALLAH.
-
@deadwing5 i had the same problem , after viewing like 100 php forums i finally have the script working. Change <? in the beggining of checklogin.php; login_success.php and logout.php to <?php . and change $username = ""; in checklogin.php to $username = "root" and you will have the script working INSALLAH.
-
<?php $host="localhost"; $username="root"; $password=""; $db_name="PHPLOGIN"; $tbl_name="members"; // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form $myusername=$_POST['myusername
']; $mypassword=$_POST['mypassword ']; -
Updated code for PHP5
phpeasystep . com / phptu / 6
remove spaces, add html after the 6
look at the bottom of the page
I'm getting a blank checklogin page and it's not redirecting.
deadwing5 2 years ago 7
I get this: Parse error: syntax error, unexpected T_STRING
and this what i have in there line 20
session_register("myusername");
ntrotter8 2 years ago 2