Guest User

Untitled

a guest
Jun 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. function izpis_produktov($izpis)
  2.     {
  3.         $resultprodukti = "SELECT ID,ime,kratki_opis,cena,stara_cena FROM produkti WHERE akcija=".$izpis;
  4.         $result = mysql_query($resultprodukti);
  5.         $html_produkta = '';
  6.         while($nt=mysql_fetch_array($result))
  7.         {
  8.             $html_produkta .= '
  9.             <li>
  10.                 <a class="product_image" href=""><img src="produkti/'.$nt["ID"].'/1-1-home.jpg" alt='.$nt["ime"].' title="" /></a>
  11.                 <h5>
  12.                <a class="product_link" href="" title="ime produkta">'.$nt["ime"].'</a></h5>
  13.                 <div><a class="product_descr" href="" title="kratki opis">'.$nt["kratki_opis"].'</a></div>
  14.                 <span class="price">'.$nt["cena"].' €</span>
  15.                 <span class="price-discount">'.$nt["stara_cena"].' €</span>
  16.  
  17.             </li>';
  18.         }
  19.        
  20.         return $html_produkta;
  21.        
  22.     }
Add Comment
Please, Sign In to add comment