Il codice che segue è quello della pagina di destinazione dell'action del submit della pagina precedente.
Codice PHP:
<?php
$scriptpath = substr( $_SERVER['SCRIPT_FILENAME'], 0, -4 );
$paths = explode ( DIRECTORY_SEPARATOR , $scriptpath );
$myName = end($paths);
require $scriptpath . '/fbapp/php/config.inc.php';
if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) {
$ctl = new FormController();
$ctl->Dispatch();
} else {
if( ! isset( $_GET['action'] ) ) $myPage->ReportStats( 'NotifyFormView' );
}
ob_start();
$myPage->Show();
ob_end_flush();
?>
Adesso se inserisco in questa pagina il seguante codice la query non viene eseguita.
qualche dritta? grazie
Codice PHP:
<?php
mysql_connect('xxx.xxx.xxx.xxx', 'user', 'pass');
mysql_select_db('nomedb');
$sql = "update card set attiva='no' where numero='$login_session' and attiva='si'; ";
mysql_query($sql)
?>