/web/htdocs/www.euroroma.net/home/admin/cercaspecialemod.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
            <?
                
if($speciale){
                    include(
"../setConn.php");
                    
$namedb "Sql603025_1";
                    
$sql "SELECT * FROM speciale WHERE ID=".$speciale."";              
                    
mysql_select_db($namedb$db);
                    
$result mysql_query($sql);
                    
$i=0;
                    while(
$results mysql_fetch_array($result)){
                        
$ID_speciale $speciale;
                        
$speciale "<option value='".$results["ID"]."'>".$results["nome"]."</option>";
                    
                        
$i++;
                    }
                    
mysql_close($db);
                }
            
?> 
                        
                        
                <SELECT NAME="speciale" class="modulo">
                    <? echo $speciale?>
                    
                    <option value="0">Articolo</option>
                        <?
                            
include("../setConn.php");
                            
$namedb "Sql603025_1";
                            
$sql "SELECT * FROM speciale ORDER BY ID DESC";
                            
mysql_select_db($namedb$db);
                            
$result mysql_query($sql);
                            
$i=0;
                            while(
$results mysql_fetch_array($result)){
                                echo 
"<option value='".$results["ID"]."'>".$results["nome"]."</option>";
                                
$i++;
                            }
                            
mysql_close($db);
                        
?> 
                      
                     </ optgroup>
                </SELECT>