init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
19
scripts/ajax/ue_tank.php
Normal file
19
scripts/ajax/ue_tank.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
//echo "<pre>"; print_r($gpsdata); echo "</pre>";
|
||||
//----------------------------------------------------------------------------------------------------------------
|
||||
$abfrage = $GLOBALS['mysql']->query_single("SELECT * FROM tanken WHERE anzid>0");
|
||||
$zufall=rand(1,$abfrage['num_rows']);
|
||||
$tankdata = $GLOBALS['mysql']->query_single("SELECT * FROM tanken WHERE anzid='".$zufall."'");
|
||||
|
||||
$tankex['diesel']=substr($tank['diesel'], 0, -1);
|
||||
$tankex['dieselx']=substr($tank['diesel'], -1, 1);
|
||||
|
||||
$diesel=$tankdata['diesel'];
|
||||
$tankdata['diesel']=substr($diesel, 0, -1);
|
||||
$tankdata['dieselx']=substr($diesel, -1, 1);
|
||||
|
||||
$template->assign('tankdata', $tankdata);
|
||||
//---------------------------------------------------------------------------------------------------------
|
||||
$template->assign('content', 'tpl/ajax/ue_tank.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue