-
Notifications
You must be signed in to change notification settings - Fork 1
/
Conexiones.php
48 lines (39 loc) · 1.52 KB
/
Conexiones.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
45
46
47
48
<?php
include('Connections/prod.php');
function iphone(){
$sql = "SELECT DISTINCT idevice FROM firmwares where idevice like 'iphone%' ORDER BY idevice ASC";
$res = mysql_query($sql) or die(mysql_error());
while($r=mysql_fetch_assoc($res)){
$idevice= stripslashes($r['idevice']);
echo '<option value="'.$idevice.'">'.$idevice.'</option>';
}
mysql_free_result($res);
}
function ipod(){
$sql = "SELECT DISTINCT idevice FROM firmwares where idevice like 'ipod%' ORDER BY idevice ASC";
$res = mysql_query($sql) or die(mysql_error());
while($r=mysql_fetch_assoc($res)){
$idevice= stripslashes($r['idevice']);
echo '<option value="'.$idevice.'">'.$idevice.'</option>';
}
mysql_free_result($res);
}
function ipad(){
$sql = "SELECT DISTINCT idevice FROM firmwares where idevice like 'ipad%' ORDER BY idevice ASC";
$res = mysql_query($sql) or die(mysql_error());
while($r=mysql_fetch_assoc($res)){
$idevice= stripslashes($r['idevice']);
echo '<option value="'.$idevice.'">'.$idevice.'</option>';
}
mysql_free_result($res);
}
function appletv(){
$sql = "SELECT DISTINCT idevice FROM firmwares where idevice like 'apple%' ORDER BY idevice ASC";
$res = mysql_query($sql) or die(mysql_error());
while($r=mysql_fetch_assoc($res)){
$idevice= stripslashes($r['idevice']);
echo '<option value="'.$idevice.'">'.$idevice.'</option>';
}
mysql_free_result($res);
}
?>