Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function izpis_produktov($izpis)
- {
- $resultprodukti = "SELECT ID,ime,kratki_opis,cena,stara_cena FROM produkti WHERE akcija=".$izpis;
- $result = mysql_query($resultprodukti);
- while($nt=mysql_fetch_array($result))
- {
- $html_produkta = '
- <li>
- <a class="product_image" href=""><img src="produkti/'.$nt["ID"].'/1-1-home.jpg" alt='.$nt["ime"].' title="" /></a>
- <h5>
- <a class="product_link" href="" title="ime produkta">'.$nt["ime"].'</a></h5>
- <div><a class="product_descr" href="" title="kratki opis">'.$nt["kratki_opis"].'</a></div>
- <span class="price">'.$nt["cena"].' €</span>
- <span class="price-discount">'.$nt["stara_cena"].' €</span>
- </li>';
- }
- return $html_produkta;
- }
Add Comment
Please, Sign In to add comment