Guest User

Untitled

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