Jump to content
php.lv forumi

Komentāri + avatārs.


Southwind*

Recommended Posts

Kods šeit

 

Man vajag ievietot šo funkciju - nezinu kā pareizi lai to izdara.

 

switch($Rezultāti['avatar_type'])
  	{
   	case 'url':
   	$avatars = $Rezultati['avatar_location'];
   	break;
   	case 'local':
   	$avatars = "/no_avatar.png";
   	break;
   	case 'upload':
   	$avatars = "f/uploads/".$commentrow2['avatar_location'];
   	break;
  	}

 

754152677.png

Vajag nomainīt, jo ar if kautkas nejiet pamainīju datubāzes querry , lai ir jaunākie komentāri un vairs neizvada visas bildes bet gan tikai tās, kas ir uz servera nevis offlink.

Edited by Southwind*
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...