First of all this is the first time i try PHP..
here is the code :
<?php
if (isset($_GET['name']) && isset($_GET['password'])
$uname = $_GET['name'];
$pass = $_GET['password'];
$conn = mysql_connect("localhost","DBusername","DBpassword");
mysql_select_db("DBname",$conn);
$result = mysql_query("SELECT * FROM table WHERE username=$uname and password =$password");
$row = mysql_fetch_array($result);
if(is_array($row)) {
$ip = $row[ip];
echo $ip ;
}else {
echo = "Invalid Username or Password!";
}
?>
When i try this link : http://www.mywebsite.com/page.php?name=user&password=mypassword
This is a Hidden page, i use it to get my recorded members IP address, when a user tries to login in my Windows Form application which is written in C#
always get a blank page ..
thanks in advance