Jump to content

Recommended Posts

hii this is the script i am using

<?php
ob_start();
require("data_conn.php");
ob_end_flush();
?>
<?php
ob_start();
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];
$sql="SELECT * FROM members where username='$myusername' and password='$mypassword'" ;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
//session_register("myusername");
//session_register("mypassword");
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
ob_end_flush();
?>


i removed the session_register because it is also giving me the same error
will sort that out when i get to the root of the problem.

I am calling the above script in the form

Nitin

Nitin
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.