this code works perfectly on iis + php+ mysql on my localhost server. When i put it online i get this error:
Code:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ferguson/public_html/flashlite/nonilogin.php on line 11
success=0.
can some one PLEASE tell me whats wrong. here is the code:
PHP Code:
<?php
include_once("conn.php");
// Read in values
$pass = ($_GET["pass"]);
$query = "SELECT * FROM meets WHERE pass LIKE '$pass'";
$result = mysql_query($query, $dblink);
/* This just gets the number of rows in the Query - It's just a check to see if the pass exists - If not it prints out an error statement. */
$row = mysql_fetch_row($result);
// If the number of rows is not equal to one then it prints out an error statement - Name not in Database.
if ($row == 1) {
print "success=1";
}
else {
print "success=0";
}
?>
Is there a special way i should upload these files to a server, to get them to work. I am talking about ANSI or something line that.