Added: 4 years ago
From: rrphillips
Views: 33,696
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (48)

Sign In or Sign Up now to post a comment!
  • How do i fix this issue?

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

  • <?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­'];
  • Comment removed

  • Comment removed

  • Updated code for PHP5

    phpeasystep . com / phptu / 6

    remove spaces, add html after the 6

    look at the bottom of the page

  • Comment removed

  • Comment removed

  • Enter this as Password:

    something' OR '1=1

    And you're logged in ...

  • I get this: Parse error: syntax error, unexpected T_STRING

    and this what i have in there line 20

    session_register("myusername")­;

  • cheers for wasting my 2 hours

    Warning

    This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

    now i can start over again by finding myself a new $_SESSION tutorial. either remove this chain of videos or add its old....

    cheers

  • cant they just go to login_success.php ?

  • Parse error: syntax error, unexpected T_VARIABLE in /home/****l/public_html/checkl­ogin.php on line 3

  • can any one plzz help me i am new to this stuff and i would really like to learn i did every thing this guy said in his videos but my checklogin.php page doesnt work it is just blank it doesnt show any thing can any one plzz help me thanks.

  • I get this errror:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\checklogin.php on line 9

    cannot connect

    Anyone that can help?

  • You wrote all he wrote in his connection.php or mysql.php?

  • I'm getting a blank checklogin page and it's not redirecting.

  • @deadwing5 Got the same problem... if you are using php 5.3.0 or higher, I don't think this tutorial works...

  • @deadwing5 there was an error in his script.

    You need to say <?php at the beginning, not <?

  • @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.

  • Still an error;

    Parse error: syntax error, unexpected T_VARIABLE in /home/a8481401/public_html/che­cklogin.php on line 15

  • First thing about these errors is to normally check for incorrect syntax in the proceeding line. An unexpected t_variable usually means you haven't closed brackets, or put in the closing curly brace etc.

  • PLZ help I have a problem

    Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\xampp\htdocs\tests\login­.php:11) in D:\Program Files\xampp\htdocs\tests\login­.php on line 28

  • Hi, i have done it all but i get this error

    Parse error: syntax error, unexpected T_VARIABLE in /home/unitedad/public_html

    /mainsite/login/checklogin.php on line 15

    any ideas why ??? Please help!

  • This tutorial is great for beginners but their are a lot of flaws that doesn't protect against sql injection.

  • im with you on that

    no encryption or validation

    to learn php too, people need to learn basic php first, then learn basic sql and then go from there.

  • Yep have to agree!  Exactly what I was thinking.

  • The problem with learning php is that you have to know the right sources and have allot of time to learn from your mistakes.

    hmmmz :/

    I'll stay motivated to become a good phper... right now i am sucking at it totally..

    it takes time, just time.

  • You are the true man... it's the best tutorial because you explain step by step... you are the best... my web site that i'm making as soon as a finish i will let you know... thank's man

  • error :/

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampplite\htdocs\login\chec­klogin.php on line 9

    Access denied for user 'ODBC'@'localhost' (using password: NO)

  • i got the same have you figured it out yet please help if you can

  • nope, i still get that error

  • You havent set the username if it says ODBC@locahost.

  • In some cases that is a good idea, but for some people after they learn something one way they don't think about doing it another way. Also after learning something it is usually hard to unlearn and do it another way..

  • how to make a file in the notepad

  • just wanted to say you are a very good speaker/teacher nice vids.

  • Your PHP tutorials are very clear and enjoyable to watch. Thanks for putting them up!

  • You guys are doing something wrong. Make sure ALL of your code is correct, and your database is correct. one small capitalization error can make a huge difference. Thank you rrphillips for a video tutorial of this!

  • Same problem as semas11122

  • your mysql_query is wrong.

    change the $result variable to:

    $result = mysql_query($sql) or die(mysql_error());

    That will tell you that your query dosen't work.

  • I have i Error :[

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource 12 line

    My 12 line is:

    $count = mysql_num_rows($result);

  • your mysql_query is wrong.

    change the $result variable to:

    $result = mysql_query($sql) or die(mysql_error());

    That will tell you that your query dosen't work.

  • @semas11122 did u get a response to the mysql_num_rows(); statement?

  • Nevermind, the sound is there. He just has a long pause, but does go back over everything. Nice job.

  • Great tutorial, would be helpful with the sound all the way through though.

  • Can't here sound at 4:33

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more