Jump to content

[Resolvido] Erro no mktime()


Recommended Posts

Olá >.< bem é assim eu tenho um erro a dar no mktime() que é

Notice: A non well formed numeric value encountered in D:\wamp\www\projet_estagio\config\gantt\gantt_principal.php on line 110

//data inicial
$diain=substr($datainicio1,0,2); //$dia
//data final
$diafi=substr($datafim1,0,2); //$dia
$valumin=($tempo-mktime($horafi, $minfi,$segfi,$mesfi,$diafi, $anofi))/(60*60*24);
$ValueMax=($tempo-mktime($horain, $minin,$segin,$mesin,$diain, $anoin))/(60*60*24);

e a linha 110 é

$ValueMax=($tempo-mktime($horain, $minin,$segin,$mesin,$diain, $anoin))/(60*60*24);

quando eu ponho só uma linha com o mktime da tudo direito mas kuando ponho 2 da-me erro podem me ajudar please ? =( ja vi as variaveis estao todas certas

Edited by AnaSilva
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.