suport Posted June 28, 2009 Report Share Posted June 28, 2009 Kadam nava IPB lietotj scirpts , kas atsevisca lapa rada lietotajus .. Vnk man ir savienots php web lapele + IPB ! Quote Link to comment Share on other sites More sharing options...
bubu Posted June 28, 2009 Report Share Posted June 28, 2009 Kam tur skriptu vajag? Vienkāršs SQL kverijs: SELECT * FROM ibf_members Un rādi no turienes, kas vajadzīgs. Quote Link to comment Share on other sites More sharing options...
Wuu Posted June 28, 2009 Report Share Posted June 28, 2009 <?php if (!defined('WWW')) { header('Location: http://'.$_SERVER['HTTP_HOST'].''); die(); } $link = mysql_connect($INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass']); mysql_query('use '.$INFO['sql_database'].';'); $page = '<div id="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) limit 10;'); if (!empty($result)) { while ($r = mysql_fetch_array($result)) { $page .='<p> <a href="'.WWW.'forum/index.php?showuser='.$r[0].'"> <img class="avatar" src="'.WWW.'forum/uploads/'.$r[2].'" alt="'.$r[1].'" /> '.$r[1].'</a> </p>'; } } $page .='</div>'; mysql_close($link); ?> Re ko es vakar sev uzrakstiju pārkodē pēc savas patikas :) Quote Link to comment Share on other sites More sharing options...
suport Posted June 28, 2009 Author Report Share Posted June 28, 2009 nez kka nesanak , parkopeju to .. iemetu .. man vinsh parlec uz sakum lapu .. ;/ Ipashi daudz neko nesaprotu . esmu iesacejs varbut var kads palidzet ? Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 29, 2009 Report Share Posted June 29, 2009 4ota es ar nesapratu nafig vinsh ka ieiet piemeram lietotaji.php met uz galveno lapu Quote Link to comment Share on other sites More sharing options...
marcis Posted June 29, 2009 Report Share Posted June 29, 2009 if (!defined('WWW')) { header('Location: http://'.$_SERVER['HTTP_HOST'].''); die(); } Šo rindiņu pamanījāt? Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 29, 2009 Report Share Posted June 29, 2009 pamaniju nonemot to rindinju neiet a ko tur izmainit lai iet nesaprotu Quote Link to comment Share on other sites More sharing options...
cucumber Posted June 29, 2009 Report Share Posted June 29, 2009 pirms tas rindas uzraksti define('WWW','www'); tad, stradas. pamacies php vairak. Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 29, 2009 Report Share Posted June 29, 2009 nestrada rada baltu lapu tas nevaretu but sakara ar to ka manai web lapai nav jaraksta www prieksha ? un ja rakstis vinja neies ? Quote Link to comment Share on other sites More sharing options...
cucumber Posted June 29, 2009 Report Share Posted June 29, 2009 (edited) iesledz kludu izvadi un peti, gan jau koda ir kada kluda, tapec jau ir balta lapa, savadak butu redirekts. Edited June 29, 2009 by cucumber Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 29, 2009 Report Share Posted June 29, 2009 kadu kludi nesapratu un ko man tur izvadit Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted June 29, 2009 Report Share Posted June 29, 2009 Kļūdu izvadi Quote Link to comment Share on other sites More sharing options...
cucumber Posted June 29, 2009 Report Share Posted June 29, 2009 esi ko dzirdejis par error_reporting f-ju. ps. bee viens un tas pats Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 29, 2009 Report Share Posted June 29, 2009 (edited) ja jau tur ir Kļūda tad kā es varu vinju izvadīt ja es pat nezinu kur vinja ir izvadiju un neko neparadij lietoju error_reporting(E_ALL); Edited June 29, 2009 by GeRik Quote Link to comment Share on other sites More sharing options...
cucumber Posted June 29, 2009 Report Share Posted June 29, 2009 lol uzraksti stapr shitam rindam tadu $page .='</div>'; mysql_close($link); bus $page .='</div>'; echo $page; mysql_close($link); 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.