suport Posted November 5, 2009 Report Share Posted November 5, 2009 (edited) Ka varetu sim scriptam uzstaisiit to lai piemeram pie 30memeberim japrasledz uz nakamo lapu , lai nav ta ka radas visi viena lapa ! <?php//Vajadzīga palīdzība, greizies "" forumā sadaļā "Problēmas un Risinājumi" //Iestatījumi include_once('forums/conf_global.php'); //Ceļš uz foruma configurācijas failu. define('WWW','http:///'); //Mājaslapas adrese $link = mysql_connect($INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass']); mysql_query('use '.$INFO['sql_database'].';'); $userlist = ''; $result = mysql_query('select t1.id,t1.members_display_name,t2.avatar_location from '.$INFO['sql_tbl_prefix'].'members t1 join '.$INFO['sql_tbl_prefix'].'member_extra t2 on (t1.id = t2.id);'); if (!empty($result)) { while ($r = mysql_fetch_array($result)) { if(empty($r[2])) { $r[2] = 'avatar.png'; } $userlist .='<p style="float:left; margin:3px;"> <a href="'.WWW.'forums/index.php?showuser='.$r[0].'"> <img style="width:50px; height:50px;" src="'.WWW.'./forums/uploads/'.$r[2].'" alt="'.$r[1].'" /><br/> '.$r[1].'</a> </p>'; } } $userlist .='<div style="font-size:0em; clear: both;"></div>'; echo $userlist; mysql_close($link); ?> Edited November 5, 2009 by suport Quote Link to comment Share on other sites More sharing options...
suport Posted November 5, 2009 Author Report Share Posted November 5, 2009 Neviens tiesham nevar paliidzet ? Quote Link to comment Share on other sites More sharing options...
anonīms Posted November 6, 2009 Report Share Posted November 6, 2009 apskaties foruma saturu "Satura dalīšana pa lapaspusēm" 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.