Código PHP:
function check_game($game) {
global $link;
$sql = "SELECT * FROM games WHERE name='$game'";
$rs = mysql_query($sql, $link);
$row = mysql_fetch_array($rs);
if($row['id'] == ''){
return false;
}
else {
return true;
};
};
Código PHP:
$row = mysql_fetch_array($rs);
Código HTML:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\IKEY SERVER\xampp\htdocs\VIRTUAL HOST\root\funciones.php on line 32