Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $r1=sql_query("SELECT * FROM `".$sql[0]['database']."`.`".$table['o_marques']."` WHERE corbeille='0' ORDER BY titre ASC",$sqlid[0]);
- $listMarque = "";
- while($row1=sql_fetch_array($r1)){
- //
- // Compter si article dispo
- $r2=sql_query("SELECT * FROM `".$sql[0]['database']."`.`".$table['o_articles']."` WHERE marque='".$row1['id']."' AND corbeille='0' AND active='1'",$sqlid[0]);
- $num2=sql_num_rows($r2);
- if($num2>0){
- $listMarque .= "<li><a href=\"/".$row1['rewrite'].".html\">".$row1['titre']."</a></li>";
- }
- }
- ?>
- <ul>
- <?php echo $listMarque; ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement