hi
This problem is the most strange thing that i seen in the last times.
this code works
<?php
function conecta () {
$host = "localhost";
$senha = "vertrigo";
$login = "xxx";
$database = "emprego";
$conexao = mysql_connect($host,$login,$senha) or die(mysql_error());
mysql_select_db($database,$conexao)or die;
}
conecta ();
//more
?>
but this doesn’t work
<?php
require("includes/f_banco.php");
conecta ();
?>
I never seen something like that. Any ideia? the paths are correct, the bd is correct and the query works when i put the function conecta() directly in the php file.
Thanks