Beispiel #1
0
break;

case "kraje":
$res=MySQL_Query("SELECT * FROM kraje");
while ($record=MySQL_Fetch_Assoc($res))
   $kraj[$record[oznaceni]]=$record[id];
MySQL_Free_Result($res);
echo date("H:i:s")." načteny kraje<br>\n";
$count=0;
$res=MySQL_Query("SELECT * FROM oddily");
while ($record=MySQL_Fetch_Assoc($res)):
   $count++;
   $up=$kraj[substr($record[fox_id],0,1)];
   MySQL_Query("UPDATE oddily SET kraj=$up WHERE id='$record[id]'");
   endwhile;
MySQL_Free_Result($res);
echo date("H:i:s")." nastaveno $count krajů<br>\n";
break;

case "rc":
$osoba[jmeno]='jm';
$osoba[prijmeni]='pr';
$osoba[narozeni]='1967-11-19';
$osoba[pohlavi]='Z';
$osoba[cizinec]='N';
$osoba[rc]='6711191553';
kontrola_osoby($osoba);
echo '<pre>';
var_dump($osoba);
echo '</pre>';
echo date("H:i:s")." kontrola<br>\n";
Beispiel #2
0
	FUNCTION Free_Result() {
		MySQL_Free_Result($this->result);
		}