query_array("SELECT * FROM tliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND sped=1"); $abfrage_jb = $mdata->query("SELECT * FROM tourenliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND typ=19"); while($row = $abfrage_jb->fetch_assoc()) { //echo $row['id']; $tour_id= array_search($row['tour'], array_column($abfrageS, 'tour')); echo "Tour: ".$abfrageS[$tour_id]['id']." Status: ".$abfrageS[$tour_id]['status']."
"; //$abfrage1 = $rasql->query_single("SELECT * FROM tliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'"); if($row['status']!=$abfrageS[$tour_id]['status']) { $mdata->query("UPDATE tourenliste SET status='".$abfrageS[$tour_id]['status']."' WHERE id='".$row['id']."'"); } } // mysql_close ($GLOBALS['rasql']); // mysql_close ($GLOBALS['mysql']); echo "fertig"; ?>