update for php7
This commit is contained in:
12
suche.php
12
suche.php
@ -44,8 +44,8 @@ require('config.inc.php');
|
||||
$select_search_ric = '
|
||||
<select name="search_ric" id="search_ric">';
|
||||
|
||||
$result = mysql_query("SELECT id, org_name, org FROM organisation WHERE org != '' ORDER BY org ASC, org_name ASC") or die (mysql_error());
|
||||
while($row = mysql_fetch_array($result))
|
||||
$result = mysqli_query("SELECT id, org_name, org FROM organisation WHERE org != '' ORDER BY org ASC, org_name ASC") or die (mysqli_error());
|
||||
while($row = mysqli_fetch_array($result))
|
||||
{
|
||||
$select_search_ric .= '
|
||||
<option value="'.$row["id"].'"'; if($_REQUEST["search_ric"]==$row["id"]) {$select_search_ric.=' selected';}else{$select_search_ric.='';} $select_search_ric.='>'.$row["org"].' '.$row["org_name"].'</option>
|
||||
@ -153,7 +153,7 @@ require('config.inc.php');
|
||||
// Auslesen pocsag
|
||||
if( $_REQUEST["search_what"] == 'ric' && $_REQUEST["search_ric"] != '' || $_REQUEST["search_what"] == 'word' && $_REQUEST["search_word"] != '' || $_REQUEST["search_what"] == 'word' && $_REQUEST["search_word_org"] != '' )
|
||||
{
|
||||
$result = mysql_query("SELECT a.adresse AS adresse_neu, a.bezeichnung AS bezeichnung_neu, a.rec_typ, a.text, DATE_FORMAT(a.zeit, '%Y%m%d%H%i%s') AS zeit, a.funktion,
|
||||
$result = mysqli_query("SELECT a.adresse AS adresse_neu, a.bezeichnung AS bezeichnung_neu, a.rec_typ, a.text, DATE_FORMAT(a.zeit, '%Y%m%d%H%i%s') AS zeit, a.funktion,
|
||||
b.adresse, b.formatierung_id, b.bezeichnung,
|
||||
c.id, c.bg_farbe, c.text_farbe, c.text_format, c.text_groesse, c.text_groesse_text,
|
||||
d.org_name, d.org
|
||||
@ -162,8 +162,8 @@ if( $_REQUEST["search_what"] == 'ric' && $_REQUEST["search_ric"] != '' || $_REQU
|
||||
LEFT JOIN formatierung c ON c.id = b.formatierung_id
|
||||
LEFT JOIN organisation d ON d.id = b.org_id
|
||||
$show_filter
|
||||
ORDER BY a.zeit DESC LIMIT 0,$_REQUEST[search_max_results]") or die (mysql_error());
|
||||
while($row = mysql_fetch_array($result))
|
||||
ORDER BY a.zeit DESC LIMIT 0,$_REQUEST[search_max_results]") or die (mysqli_error());
|
||||
while($row = mysqli_fetch_array($result))
|
||||
{
|
||||
$bezeichnung = $row["bezeichnung"];
|
||||
|
||||
@ -260,5 +260,5 @@ eval ("dooutput(\"".gettemplate($template_dir."rahmen")."\");");
|
||||
/**************************/
|
||||
// Datenbank schliessen
|
||||
//
|
||||
mysql_close($dbconn);
|
||||
mysqli_close($dbconn);
|
||||
?>
|
||||
|
Reference in New Issue
Block a user