28 thoughts on “Project in PHP in Hindi Part 5 : Login System and session creation for admin

  1. Bro i open 2 note pads in my window, i saved name with is register.php, and another one was register.php. but i got notice error how can i contact you bro please tell me my doubt

  2. Sir when i m designing the page by html so at run time its giving a source code not output bcoz i m doing designing also in home page so can u tell my why its displaying the code same as written in page

  3. solve the problem…

    <!DOCTYPE html>






    if (isset($_POST['login']))




    $qry="SELECT * FROM admin WHERE username='$username'AND password='$password'";



    if ($row <1)




    alert('username or password should not match!!');








    echo "id=".$id;






    <h1 align="center">admin login</h1>

    <form method="post" action="login.php">

    <table align="center">



    <td><input type="text" name="uname" required></td>




    <td><input type="password" name="pass" required></td>



    <td colspan="2"><input type="submit" name="login" value="login"></td>






  4. " $query=SELECT * FROM `admin` WHERE `username`='$username' AND `password`='$password';"
    error: ! ) Parse error: syntax error, unexpected '`' in C:wamp64wwwsmslogin.php on line 34
    how to fix this?

  5. (my help me any program)
    $db['db_host'] = 'localhost';
    $db['db_user'] = 'root';
    $db['db_pass'] = '';
    $db['db_name'] = 'cms';
    foreach($db as $key => $value){
    define(strtoupper($key), $value);
    $con = mysqli_connect(DB_HOST,DB_USER,DB_PASS,DB_NAME);
    $query = "SELECT * FROM categories";
    $run = mysql_query($con,$query);
    if(mysqli_num_rows($run) >2){
    while($row = mysqli_fetch_array($run)){
    $category =$row['category'];
    echo "<li><a href='#'>$category</a></li>";
    Warning: mysql_query() expects parameter 1 to be string, object given in C:xampphtdocscmsincheader.php on line 35 help me

  6. Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsseriesProjectlogin.php:27) in C:xampphtdocsseriesProjectlogin.php on line 50 …….
    I am getting this warning when i login please help me out…

  7. Sir mere me Javascript run nhi kr rhi… Mujhe javascript with html on wamp server pr chalane ki tricks bta dijiye please. Jaise apke system pr easily run ho jati h.. Please please

  8. sir plzz reply..
    m not able to solve this error… actually the page is going to execute correctly bt this error is displaying on login page "Notice: Undefined index: uid in C:xampphtdocsstudentMangSystemlogin.php on line 4" pzz plzz plzzz ans this

  9. Sir,

    Jab session destroy kar ke fir se login page kholege to $row to zero hoga kyu ki koi data retreive nahi huaa hoga.. to $id bhi exist nahi karega.. matlab undefined uid error dikhayega login page pe pehle hi baar me. Please resolve the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *