sql – How to make a database selector in PHP?

I have a list of buttons with the names of the databases that I have in PHPMyAdmin. I would like to click on one of the buttons to load the page of index.php and change the value of the name of the database to which you are connecting.

That is, there are 3 files:

  • Login (login + login data to a database of PHPMyAdmin.
  • Selection screen (Page with database selection buttons).
  • Index that shows the data of the chosen database.
$show_db = mysqli_query($mysqli,"SHOW DATABASES"); 
echo "
"; $i=0; $array = array(); while ($row = mysqli_fetch_array($show_db)) { echo ""; $i++; $array() = $row(0); } echo "
"; for($j=0;$j<=$i;$j++){ if (isset($_POST('button'.$j.''))) { $_SESSION('db') = $array($j); include 'login.php'; } } echo $_SESSION('db'); ?> Show Data

According to the button that is clicked at the beginning, the login should change and therefore the data of index.php too.

applications – How do I deactivate the application selector in Pixel 3?

I would like to disable the rapid change of applications in pixel 3. My device is not rooted and I use nova launch.

I checked the configuration and looked at the gesture folder and the nova initiator configuration and did not find a feature that seems to do the trick.

Can you help me understand how I can get rid of the fast application switch on pixel 3?

There are two things that I am trying to stop.

1- When you swipe up from the bottom of the screen and see applications and you can switch between them

2- When you slide horizontally on the coupling bar and take it to the most recent application

mobile web – Language and country selector on a website

I am currently designing a website for a global company with multiple market sites (website.com, website.co.uk, website.ru, etc.). Some markets also have several languages ​​(website.be you can navigate in Dutch, German and French, for example).

Therefore, the user must have the possibility to change the language. inside the same market site or Switch to another market site.

How do I do this without it being confusing to the user? Is there a good example of how this can be solved?

I have done some comparative evaluations, but most sites have a country selector or a language selector, not both.

complexity theory: why are upstream selector matching algorithms more efficient?

Most implementations of CSS-like selectors (that is, patterns that can match paths in a tree) seem to use an upward approach. That is, for each node in the tree, they verify a match with the rightmost element of the selector pattern. If the node matches, they look for their ancestors looking for a match with the element of the rightmost selector pattern, and so on.

My question is, why is this more efficient than starting from above and working down (from left to right in the selector pattern)? In both approaches, it seems that you have to examine each route, and both approaches can benefit from the short circuit.

javascript: power selector property from component

How, from a component that I created, I access dynamically (to link data or otherwise) to change a property of a selector "Selector.Veiculos"?
knowing that this property is an array of objects

I thought about using an output, but I don't know if it works, the EventEmmiter can't use the methods of an array even writing the element
`@Input () List: any ();
@Output () ListSai = new EventEmitter< number()>()

builder () {}

ngOnInit () {

addOrDrop (element, index) {
let idxVeic = this.ListSai.indexOf (item);
if (idxVeic> -1) {
this.ListaSai.splice (idxVeic, index);
} plus {
this.ListSai.push (element);

I received an error No class method is known for the selector & # 39; systemBackgroundColor & # 39; y No class method is known for the & # 39; secondLabelColor & # 39 ;.

f (@available (iOS 13.0, *)) {_tableView.backgroundColor = (UIColor systemBackgroundColor); self.footerTextView.textColor = (UIColordaryLabelColor); }}

JS will change the interval of 5 minutes in the date selector of the SP list to 15 minutes

I want to change the default increment / interval of 5 minutes in the WebPart of the OOTB date picker in a custom SP13 list to a longer interval (such as 15 minutes). How is this achieved?

I'm quite new to SharePoint (and JS / JQuery), so explain with good details so that a "newbie" can understand. Thank you!

Sharepoint online: how to clear the value in the people selector using js

I have an item in the SharePoint list with the data type people selector.

When the approver 1 edits the item and then assign Assign to in the people picker, and then click the Save button.
The next approver 2 edits the item and then assigns Assign to in the people selector, can the previous people selector be deleted?

online sharepoint: how to add multiple users in the Multi-user Selector field (Person or group field)

I want to add multiple users in the person field of multiple selectors in the SharePoint list. I tried the following code but I always get an error that:

New object: The type cannot be found (Microsoft.SharePoint.SPFieldUserValueCollection): verify that the assembly containing this type is loaded.

Can anyone help me solve this problem?

$ClientContext = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Securedpw = ConvertTo-SecureString $Password -AsPlainText -Force
$ClientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $Securedpw)
$web = $ClientContext.Web 
$list= $web.lists.GetByTitle($listName)
$ListItemCreationInformation = New-Object Microsoft.SharePoint.Client.ListItemCreationInformation
$ListItem= $list.AddItem($ListItemCreationInformation)

$UserAccounts="domainarzoo; domainashwin"
$UserAccountsColl = $UserAccounts -split ';'
$UserCollection = new-object Microsoft.SharePoint.SPFieldUserValueCollection
foreach($UserAccount in $UserAccountsColl)
   #Get the User

    #Add to collection
    $UserFieldValue = new-object Microsoft.SharePoint.SPFieldUserValue($Web, $User.ID, $User.LoginName)

#update the Multiple value Person or Group field
$ListItem($FieldName) = $UserCollection

Share screenshot in Unity 2D Android selector

I am trying to share a screenshot of my game on social networks. I want to use the integrated Android sharing options. This fantastic blog gives instructions on how to do this, however, it does not work. Below, I enclose part of the code contained in the blog,

    public IEnumerator ShareScreenshotInAnroid () {

        isProcessing = true;
        // wait for graphics to render
        yield return new WaitForEndOfFrame ();

        string screenShotPath = Application.persistentDataPath + "/" + screenshotName;
        ScreenCapture.CaptureScreenshot (screenshotName, 1);
        yield return new WaitForSeconds (0.5f);

        if (!Application.isEditor) {
            //Create intent for action send
            AndroidJavaClass intentClass = new AndroidJavaClass ("android.content.Intent");
            AndroidJavaObject intentObject = new AndroidJavaObject ("android.content.Intent");
            intentObject.Call ("setAction", intentClass.GetStatic ("ACTION_SEND"));

            //create image URI to add it to the intent
            AndroidJavaClass uriClass = new AndroidJavaClass ("android.net.Uri");
            AndroidJavaObject uriObject = uriClass.CallStatic ("parse", "file://" + screenShotPath);

            //put image and string extra
            intentObject.Call ("putExtra", intentClass.GetStatic ("EXTRA_STREAM"), uriObject);
            intentObject.Call ("setType", "image/png");
            intentObject.Call ("putExtra", intentClass.GetStatic ("EXTRA_SUBJECT"), shareSubject);
            intentObject.Call ("putExtra", intentClass.GetStatic ("EXTRA_TEXT"), shareMessage);

            AndroidJavaClass unity = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject currentActivity = unity.GetStatic ("currentActivity");
            AndroidJavaObject chooser = intentClass.CallStatic ("createChooser", intentObject, "Share your high score");
            currentActivity.Call ("startActivity", chooser);

        yield return new WaitUntil (() => isFocus);
        isProcessing = false;

I tried it on my mobile device and I am sure that the screenshot was taken (because I can see it in the file list), however, the selector never appears.

Not sure how to take records on Android. Therefore, any help with registration or with the function is greatly appreciated.