Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 26

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > International > Italian - Italiano > Problematiche generali

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 23.08.2004, 19:57   #1 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Aggancio di un dato dinamico da altro db nel Modulo Statistiche

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

global $mosConfig_offset;

$content ="";
// $content .="<b>OS:</b> " .substr(php_uname(),0,7);
// $content .="<br /><b>PHP:</b> " .phpversion();
// $content .="<br /><b>MySQL:</b> " .mysql_get_server_info();
$content .="<b>"._TIME_STAT.": </b> " .date("H:i",time()+($mosConfig_offset*60*60));

$query="SELECT count(id) AS count_users FROM #__users";
$database->setQuery($query);
$content .="<br /><b>"._MEMBERS_STAT.":</b> " .$database->loadResult();

$query="SELECT sum(hits) as count from #__stats_agents WHERE type='1'";
$database->setQuery($query);
$content .="<br /><b>"._HITS_STAT.":</b> " .$database->loadResult();

$query="SELECT count(id) as count_items from #__content";
$database->setQuery($query);
$content .="<br /><b>"._NEWS_STAT.":</b> ".$database->loadResult();

$query="SELECT count(id) as count_links FROM #__weblinks WHERE published='1'";
$database->setQuery($query);
$content .="<br /><b>"._LINKS_STAT.":</b> ".$database->loadResult();


$num =mysql_num_rows(mysql_query("SELECT * FROM iscritti"));
$database->setQuery($query);
$content .="<br /><b>"._SITE_STAT.":</b> ".$num;

<hr>
Sito: http://lnx.ilnucleo.org (aruba) -> Statistiche
Dunque, vorrei inserire nel MOD Stats una riga per prendere una statistica dinamica pescata da un altro database nel Mysql.
Ho creato le righe che vedete sopra segnate in rosso, ma ho un problema. Prima le righe che doveva contare erano si 89, ma ora ne ho eliminata una e non ha aggiornato la statistica: come mai? che ho sbagliato? Avete altro codice da proporre?
Il dato lo dovrebbe pescare dal db Sql29373_1, mentre il mambo pesca di solito da Sql29373_2 (o _3).
Non capisco perchè non aggiorni l'effetto.
Da Mysql leggo: Visualizzazione record 0 - 87 (88 Totali)

Potete darmi una mano per favore?

Grazie,
Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 24.08.2004, 12:19   #2 (permalink)
Professional Mamber
 
michelerocco's Avatar
 
Join Date: Apr 2004
Location: Pula - Cagliari - Italy
Posts: 611
michelerocco will become famous soon enough
Send a message via MSN to michelerocco
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

ehm ... scusa ma do'è che gli dici di andare a pescare i dati da un altro db?

non devi prima "agganciarti" all'altro db? ... e poi ricordarti di sganciarti e tornare sul db di base del mos ...
__________________
Michele Rocco
WebSite Design, Graphics, Programming
www.michelerocco.com
michelerocco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 24.08.2004, 15:39   #3 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Ma come dirglielo e soprattutto, perchè mi aveva pescato quel dato (89)?

Che pezzo di codice dovrei immettere?
Grazie

Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 26.08.2004, 02:10   #4 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Forza ragazzi, confido in un aiuto per sistemare anche questo problema.

Ciao e grazie in anticipo,
Elwood

__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"

Last edited by Elwood; 27.08.2004 at 02:16.
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.08.2004, 16:18   #5 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Chiedo nuovamente aiuto per sistemare questo problema, da solo non sono in grado di farlo.

Potreste aiutarmi pls?

Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 31.08.2004, 14:41   #6 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Help me pls!!!!


... sembra una canzone d'amore...
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01.09.2004, 22:44   #7 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Michele, ragazzi riuscite ad aiutarmi? sto sparando un pò di codice ma nn riesco a fare quell'aggancio corretto.

Grazie,
Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04.09.2004, 20:05   #8 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Sono ancora alla ricerca di una dritta, di un consiglio di un aiuto, mambers!!!!!


Dai pls, indicatemi la strada!

Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.09.2004, 19:53   #9 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Non mollatemi solo daiiiiiiiiiiiiiiiiiiiiiiiiiiiii..... nn son capace da solo!

Cerco mente illuminata che possa iutarmi a risolvere.

Elwood
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08.09.2004, 20:30   #10 (permalink)
Expert Mamber
 
Elwood's Avatar
 
Join Date: May 2004
Posts: 341
Elwood is on a distinguished road
Default Re: Aggancio di un dato dinamico da altro db nel Modulo Statistiche

Praticamente è una delle ultime cosa da perfezionare prima di uppare il sito. mi dareste una mano pls?
__________________
"Im Nucleo war Ich bloss der Buchhalter des Todes"
Elwood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 00:46.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.