testowy post
  1.  
  2.  
  3. function dostep ( $uid ) {
  4.  
  5. $dostep = mysql_query("SELECT `dostep` FROM `foto_user` WHERE `userid`= $uid");
  6. while ($dostep1 = mysql_fetch_array($dostep)) {
  7. $uid = $dostep1[dostep];
  8. }
  9.  
  10. $uid = str_replace ("100", "użytkownik", $uid);
  11. \ test
  12.  
  13. $uid = str_replace ("110", "moderator", $uid);
  14. $uid = str_replace ("120", "administrator", $uid);
  15. $uid = str_replace ("130", "główny administrator", $uid);
  16.  
  17. return $uid;
  18. }
  19.  
  20.  
[syntax=php]

function dostep ( $uid ) {

$dostep = mysql_query("SELECT `dostep` FROM `foto_user` WHERE `userid`= $uid");
while ($dostep1 = mysql_fetch_array($dostep)) {
$uid = $dostep1[dostep];
}

$uid = str_replace ("100", "użytkownik", $uid);
\ test

$uid = str_replace ("110", "moderator", $uid);
$uid = str_replace ("120", "administrator", $uid);
$uid = str_replace ("130", "główny administrator", $uid);

return $uid;
}

[/syntax]

testowy post
testowa treść