Thank you very much guys for quick reply, but I can't succed in resolving the problem due to my ignorance (my php knoledge is under zero and now I have no time to improve it too much).
This is the code of one of the page that doesn't function.
<?php error_reporting (E_ALL); ?>
<?php require_once('Connections/connApneaAcademyADODB.php'); ?>
<?php require_once('includes/functions.inc.php'); ?>
<?php
// begin Recordset
$query_rsIstruttori = "SELECT * FROM istruttori";
$rsIstruttori = $connApneaAcademyADODB->SelectLimit($query_rsIstruttori) or die($connApneaAcademyADODB->ErrorMsg());
$totalRows_rsIstruttori = $rsIstruttori->RecordCount();
// end Recordset
// Start the session
session_start();
// Validate request to log in to this site.
$KT_LoginAction = $HTTP_SERVER_VARS["REQUEST_URI"];
if (isset($HTTP_POST_VARS["tfCognome"])) {
$KT_valUsername = $HTTP_POST_VARS['tfCognome'];
$KT_fldUserAuthorization = "";
$KT_redirectLoginSuccess = "istruttori_riservata_home.php";
$KT_redirectLoginFailed = "istruttori_login_failed.php";
$KT_rsUser_Source = "SELECT Cognome, Password ";
if ($KT_fldUserAuthorization != "") $KT_rsUser_Source .= "," . $KT_fldUserAuthorization;
$KT_rsUser_Source .= " FROM istruttori WHERE Cognome='" . $KT_valUsername . "' AND Password='" . $HTTP_POST_VARS['tfPassword'] . "'";
$KT_rsUser=$connApneaAcademyADODB->Execute($KT_rsUser_Source) or DIE($connApneaAcademyADODB->ErrorMsg());
if (!$KT_rsUser->EOF) {
// username and password match - this is a valid user
$KT_Username=$KT_valUsername;
session_unregister("KT_Username");
session_register("KT_Username");
if ($KT_fldUserAuthorization != "") {
$KT_userAuth=$KT_rsUser->Fields($KT_fldUserAuthorization);
} else {
$KT_userAuth="";
}
session_unregister("KT_userAuth");
session_register("KT_userAuth");
if (isset($HTTP_GET_VARS['accessdenied']) && false) {
$KT_redirectLoginSuccess = $HTTP_GET_VARS['accessdenied'];
}
$KT_rsUser->Close();
session_unregister("KT_login_failed");
session_register("KT_login_failed");
$KT_login_failed = false;
// Add code here if you want to do something if login succeded
KT_redir($KT_redirectLoginSuccess);
}
$KT_rsUser->Close();
$KT_login_failed = true;
session_unregister("KT_login_failed");
session_register("KT_login_failed");
// Add code here if you want to do something if login fails
KT_redir($KT_redirectLoginFailed);
}
I have tried to insert the error reporting command at the top of page but when I launch the page nothing happens. Surely I am wrong. In which way I can modify php.ini or changing php settings on my provider? Is there a standard way?
Thanks again and sorry for my complete ignorance.
I was forgiving, I have seen that safe mode gid is on, this can cause trouble?
The last question, if I post my local phpinfo result (that currently function) and the provider's one you thing you can understand the problem?
I hope to don't bother you but I am really in panic, too many days that this site is offline.
//PHP ADODB document - made with PHAkt 2.0.60
?>