Puika1 Posted March 24, 2009 Report Posted March 24, 2009 man ir šāds scripts <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? $db_host='host'; $db_user='user'; $db_pass='pass'; $db_name='db'; mysql_connect($db_host,$db_user,$db_pass)or die(mysql_error()); mysql_select_db($db_name)or die(mysql_error()); $reg = mysql_query("SELECT * FROM ibf_members"); $reg = mysql_num_rows($reg); $delay = "900"; $delays = time() - $delay; $useri = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= ".$delays.""); $regon = mysql_num_rows($useri); $viesi = mysql_query("SELECT * FROM ibf_sessions WHERE member_id = '0' and running_time >= ".$delays.""); $viesi = mysql_num_rows($viesi); $kopa = $regon + $viesi; echo ' <span style="font-size:9pt;"> Reģistrējušies: '.$reg.'<br /> Online: '.$kopa.'<br /> Viesi: '.$viesi.'<br /> Lietotāji: '.$regon.'<br /> <hr style="margin:2px 0;"/> '; $getusers = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= '$delays'"); while ($users = mysql_fetch_array($getusers)){ echo "<a href='f/index.php?showuser=$users[id]' title='$users[members_display_name]'>$users[members_display_name]</a><br />"; } ?> </span> un rāda lietotājus online šādi kā var dabūt lai rādītu šādi? lietotajvards lietotajvards lietotajvards lietotajvards utt. tipa uz leju ludzu palidziet
elsBandijs Posted March 24, 2009 Report Posted March 24, 2009 ...skripts tev it ka jau izvaditu katru jaunaa rindaa (<br />) teoretiski, bet man garaamejot izskataas, kas scripts, ko tu te ierakstiji un izvade, ko var redzeet shotaa nav vis viens un tas pats - jo - no kurienes tad komati? (scriptaa nav)
Recommended Posts