'.print_r($_GET,1).''; $modes=array('edit','add','remove'); if (array_key_exists('w',$_GET) && array_key_exists('i',$_GET) && preg_match('/^[0-9]+$/',$_GET['i'])===1 && array_key_exists('m',$_GET) && in_array($_GET['m'],$modes)) { $id=$_GET['i']+0; $fout='
'.N; switch ($_GET['w']) { case 'LocalityID': $res=mysqli_query($link,'SELECT * FROM Localities WHERE ID='.$id) or muoribene(mysqli_error($link),true); if (mysqli_num_rows($res)==1) { $row=mysqli_fetch_assoc($res); $stateid=$row['StateID']; $locname=$row['Locality']; $fout.='
'.N; $fout.=''.N; $fout.='
'.N; $fout.=''.N; $fout.=''.N; } else { $fout.='

There is no Locality with ID='.$id.'

'.N; } break; case 'DispFinModes': break; case 'DispPolicies': break; case 'DispTags': break; default: muoribene('Malformed input.',true); break; } $fout.='
'.N; } else { muoribene('Malformed input.',true); } mysqli_close($link); ?> Mastodon Startpage Admin - Little edit’s helper