in PHP4 funzionava tutto, ora in locale ho svariati errori, non mostra la scheda del prodotto ma il codice sorgente, SQL comprese:

"); print ("$testo"); print (" "); print ("
"); print (" "); } function VM($d) { return intval( 100 * doubleval($d) ) / 100 ; } function CalcolaMedia($id,$ida) { return 0; } function ContaComm( $id_p , $id_g , $database, $db ) { if (( $id_p != "" ) && ( $id_g != "" )) { $sql = "select count(*) from tbl_comm where id_p = " . $id_p . " and id_g = " . $id_g; } else { if ( $id_p != "" ) { $sql = "select count(*) from tbl_comm where id_p = " . $id_p ; } else { $sql = "select count(*) from tbl_comm where id_g = " . $id_g; } } $rs = mysql_db_query( $database, $sql, $db) or die(mysql_error()); $row = mysql_fetch_array( $rs ); return $row[0]; } function TitoloPartita($id, $d,$db) {
etc........



consigli?
Grazie!