Jump to content

cool_techie

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by cool_techie

  1. hello, Sir now i am using the following code...but the redirected page is completely blank.... My code is: <?php { $dbConnect = mysql_pconnect("localhost", "root") or die("Cannot connect database"); mysql_select_db("ABC") or die("Cannot select database"); $user = $_POST['uname']; $passwd = $_POST['passwd']; if (isset($_POST['submit'])) { $query = "select `fname`, `password` FROM details WHERE `fname`='$user' AND `password`='$passwd'"; $result=mysql_query($query); if(mysql_num_rows($result) == 1) { header('Location:C:\xampp\htdocs\ABCcinemas\index1.html'); } else { echo "No match found !<hr />"; } } } ?> sir please help me out with...it...
  2. Hello , I have 1 more query.... If i have made my form's method as POST......and i have used GET in my php script will it work........
  3. Sir,i used the following code for trial purpose to see if i suceed.......... But it is showing no effect....no errors r being generated but no output is being given....it renders a blank page.. <?php $dbConnect = mysql_pconnect("localhost", "root") or die("Cannot connect database"); mysql_select_db("ABC") or die("Cannot select database"); $user = $_GET['uname']; $passwd = $_GET['passwd']; if (isset($_GET['submit'])) { $query = "select `fname`, `password` FROM details WHERE `fname`='$user' AND `password`='$passwd'"; $result=mysql_query($query); if(mysql_num_rows($result) == 1) { header('Location:C:\xampp\htdocs\ABCcinemas\index1.html\'); } else { echo "No match found !<hr />"; } } ?>
  4. Hello everyone, I am new to php,and i am making my website......where i am unable to redirect a user to his respctive homepage.. Can anyone help me out with a sample script.......... Thanks, cool_techie
×
×
  • 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.