Not able to login through my hosted php page..!!
I am trying host my code in a hosting site #-Link-Snipped-# My code is working fine with my pc but not when i hosted there....Look at this code...
<html>
<body bgcolor="green">
<?php
$conn=mysql_connect("https://www.my3gb.com/phpmyadmin/","username","password");
mysql_select_db("mohit007kumar00_cboy",$conn);
print "<h1>connected</h1>";
$rs=mysql_query("select * from signup where user='".$_POST['t1']."'");
print "<h1>queried</h1>";
while($row=mysql_fetch_array($rs))
{
print "<h1>under while</h1>";
if($row['pswd']==$_POST['t2'])
{
print "<h1>You are alowed</h1>";
}
else
{
print "<h1>not alowed</h1>";
}
}
?>
</body>
</html>
and the login page is .....
<html>
<body bgcolor="yellow">
<center>
<h1>Login Application</h1>
<form action="log.php" method="post">
user<input type="text" name="t1"><br><br>
pswd<input type="password" name="t2"><br><br>
<input type="submit">
</form>
</center>
</body>
</html>
on my pc it will show the output like this.... "connected queried under while You are alowed". But on my hosted link it will show the output like this...... "connected queried".
Can anyone help me to fix this issue...!!