Recursos

> ???mysql??.someserver.net
$db_host = “localhost”;
// Place the username for the MySQL database here
$db_username = “appiptap_builder”;
// Place the password for the MySQL database here
$db_pass = “passred@33”;
// Place the name for the MySQL database here
$db_name = “appiptap_base”;

// Run the actual connection here
mysql_connect(“$db_host”,”$db_username”,”$db_pass”) or die (“could not connect to mysql”);
mysql_select_db(“$db_name”) or die (“no database”);
$ano_actual=strftime(“%Y”,strtotime(“now”));
$ano_01=strftime(“%Y”,strtotime(“+1 year”));
$sql = mysql_query(“SELECT * FROM pagamentos WHERE id = ‘$socioID’ AND mail = ‘$socio’ AND numero_socio = ‘$password’ AND (referencia=’quota $ano_actual’ OR referencia=’quota $ano_01′) LIMIT 1”);

// —– MAKE SURE PERSON EXISTS IN DATABASE ——–

$existCount = mysql_num_rows($sql); // count the rows nums

if ($existCount == 0) { // evaluate the count

header(“location: http://www.appi.pt/APPI_WEB/site/”);

exit();
}
?>

BritLit

CILT

EDL