GeRik Posted June 4, 2009 Report Share Posted June 4, 2009 (edited) Meginaju 2 stundas pielikt tas bildes pie savaeja online lista bet nu nekadigi nesanaca ja var kads ludzu pieliekat klat lai rada bildes http://paste.php.lv/26f1910fa80813f920b4f7...40f5b5?lang=php Edited June 4, 2009 by GeRik Garus koda gabalus lūdzams likt http://paste.php.lv/ Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted June 4, 2009 Author Report Share Posted June 4, 2009 A varbūt kads kas mak scriptot varbūt būtu labāk ņemt bildi no viņa profila un uzrāda vienādā lielumā un blakus vārdam vai lietotāju grupai! :) Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted October 20, 2009 Author Report Share Posted October 20, 2009 Es tik tagad pamaniju vienu problemu bet nezinu kur ir vienads saja skripta ielogojos ar useru man radas user user ielogojos ar owner rada tikai owner <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <? $db=(object)array( 'host'=>'localhost', // Datubazes hosts 'user'=>'root', // Datubazes lietotajs 'pass'=>'1991jz9969470', // Datubazes lietotaja parole 'name'=>'db', // Datubazes nosaukums 'prefix'=>'ibf_members', // Bla, bla ); $reg = mysql_query("SELECT * FROM ibf_members"); $reg = mysql_num_rows($reg); $delay = "900"; $delay = time() - $delay; $useri = mysql_query("SELECT * FROM ibf_sessions WHERE member_id != '0' and running_time >= ".$delay.""); $regon = mysql_num_rows($useri); $viesi = mysql_query("SELECT * FROM ibf_sessions WHERE member_id = '0' and running_time >= ".$delay.""); $viesi = mysql_num_rows($viesi); $kopa = $regon + $viesi; echo ' ReДЈistrД“juЕЎies: '.$reg.'<br /> Online: '.$kopa.'<br /> Viesi: '.$viesi.'<br /> LietotДЃji: '.$regon.'<br /> <hr style="margin:2px 0;"/> '; while ($users = mysql_fetch_array($useri)){ $group = $users['member_group']; $q = mysql_query("SELECT * FROM ibf_groups WHERE g_id = '$group'"); while($group = mysql_fetch_array($q)){ if(empty($group['prefix'])){ $prefix = "<span style=\"color:black\">"; $suffix = "</span>"; } else{ $prefix = $group['prefix']; $suffix = $group['suffix']; } echo "<a href='f/index.php?showuser=".$users['member_id']."' title='".$users['member_name']."'>".$prefix."".$users['member_name']."".$suffix."</a><br />"; } } ?> Problēma ir tāda ka useru rāda 2reiz nevis tik vienu! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.