summaryrefslogtreecommitdiff
path: root/services/dect_clear.php
blob: 713cce3610596f0b26776fbaab31307e82a5b3ba (plain)
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
<?PHP
// l�scht alle eintrag in der telefonanlage, indem jede nummer einz�hln gel�scht wir (#10<NUMBER>)

include ("../includes/db.php");
include ("../includes/config.php");
include ("../includes/funktion_modem.php");


$SQL =  "SELECT DECT FROM `User`;";

$Erg = mysql_query($SQL, $con);

echo mysql_error($con);

for( $i=0; $i<mysql_num_rows($Erg); $i++)
{ 
 	$Number = "#10". mysql_result($Erg, $i, "DECT");
	if( strlen($Number)==7)
		DialNumber(  $Number);
}

return 0;

?>