PHP Mysql Prepared statement different result
I have an array of integers, how do I use each one in a mysql query (in php)?
Using ArcMap 10.0, I am working on a map that shows many villages. Each village has a name attribute that I want to use for a label, but in some areas there are so many villages that not all can be labeled. I am using the Maplex label engine and have not checked the "Never Remove (allow overlap)" box.  I am quite happy that not all village names are displayed as this would be way too much. And it is ok that Maplex chooses which labels to display, as I have no way to know which village is more important than another one. This also means that I can't base the labeling on a field such as population or something else, even though that would be less random.  However, I would also like the village points that are not labeled to similarly not be displayed. I think it unlikely that someone would want to see the point without knowing the name of the village. If all points are shown, it is also difficult to tell which point a name label goes with in crowded areas. So instead of choosing just labels not to be shown, I also want the computer to chose features not to be shown.  To give you a better idea on what I mean:    Is there a way to make these features/points not draw if their label is not shown? Express solutions of equation $ \tan x= x $ in closed form I know that the equation $$ \tan(x) = x $$ can be solved using numerical methods, but I’m looking for a closed form of the solutions. In my opinion, having only numerical solutions means that we don’t know the problem, and sooner or later, we’ll be able to find a closed-form solution or at least a power-series solution. I’m looking for an explicit form of a sequence $ (x_{n})_{n \in \mathbb{Z}} $ in $ \mathbb{R} $ such that  $ 0 &lt; x_{0} &lt; \dfrac{\pi}{2} $, $ \tan(x_{n}) = x_{n} $ for all $ n \in \mathbb{Z} $, and $ (2 n - 1) \dfrac{\pi}{2} &lt; x_{n} &lt; (2 n + 1) \dfrac{\pi}{2} $ for all $ n \in \mathbb{Z} \setminus \{ 0 \} $.  The existence of such a sequence follows from the continuity of $ x \mapsto \tan(x) - x $ over its domain. Its uniqueness follows from the monotonicity of $ \tan(x) - x $ over the intervals $$ \left( (2 n - 1) \frac{\pi}{2},(2 n + 1) \frac{\pi}{2} \right), \quad n \in \mathbb{Z}. $$ "Access denied" when trying to end a process on Windows 8 Cannot remove JDK – /usr/sbin/alternatives: No such file or directory When I try to remove Java with sudo apt-get remove jdk1.8.0-40 I get this:    Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   jdk1.8.0-40 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 245 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 231488 files and directories currently installed.) Removing jdk1.8.0-40 (1.8.040-1) ... find: `/usr/java/*': No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: No such file or directory dpkg: error processing package jdk1.8.0-40 (--remove):  subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing:  jdk1.8.0-40 E: Sub-process /usr/bin/dpkg returned an error code (1)   Output of  ls -1 /var/cache/apt/archives/*jdk*:  openjdk-7-jre_7u75-2.5.4-1~trusty1_amd64.deb openjdk-7-jre-headless_7u75-2.5.4-1~trusty1_amd64.deb   Output of sudo dpkg --purge --force-all jdk1.8.0-40:  (Reading database ... 231488 files and directories currently installed.) removing jdk1.8.0-40 (1.8.040-1) ... /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: No such file or directory /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: No such file or directory dpkg: error processing package jdk1.8.0-40 (--purge): subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing:  jdk1.8.0-40   When trying the edit I get this:  (Reading database ... 231488 files and directories currently installed.) Removing jdk1.8.0-40 (1.8.040-1) ... /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 586: /usr/sbin/alternatives: Permission denied /var/lib/dpkg/info/jdk1.8.0-40.postrm: line 598: /usr/sbin/alternatives: Permission denied dpkg: error processing package jdk1.8.0-40 (--remove):  subprocess installed post-removal script returned error exit status 126 Errors were encountered while processing:  jdk1.8.0-40 E: Sub-process /usr/bin/dpkg returned an error code (1) If $p,q,r$ are all primes,and $p|qr-1$,$q|pr-1$ and $r|pq-1$,find all possible values of $pqr$. Why does the Community user approve and reject edits? Why does the Community user sometimes approve or reject edits? How does a machine know if my edit is valid? What does it mean if my edit was rejected by Community?     See also: I am developing my first 2D game in Unity and I have come across what seems an important question.  How do I handle data between scenes?  There seems to be different answers to this:   Someone mention using , while other people told me this should be used to store other things like screen brightness and so on. Someone told me that the best way was to make sure to write everything into a savegame everytime that I changed scenes, and to make sure that when the new scene loads, get the info from the savegame again. This seemed to me wasteful in performance. Was I wrong? The other solution, which is the one I have implemented so far is to have a global game object that isn't destroyed between scenes, handling all the data between scenes. So when the game starts, I load a Start Scene where this object is loaded. After this ends, it loads the first real game scene, usually a main menu.   This is my implementation:  using UnityEngine; using UnityEngine.UI; using System.Collections;  public class GameController : MonoBehaviour {      // Make global     public static GameController Instance {         get;         set;     }      void Awake () {         DontDestroyOnLoad (transform.gameObject);         Instance = this;     }      void Start() {         //Load first game scene (probably main menu)         Application.LoadLevel(2);     }      // Data persisted between scenes     public int exp = 0;     public int armor = 0;     public int weapon = 0;     //... }   This object can be handled on my other classes like this:  private GameController gameController = GameController.Instance;   While this has worked so far, it presents me with one big problem: If I want to load directly a scene, let's say for instance the final level of the game, I can't load it directly, since that scene does not contain this global game object.  Am I handling this problem the wrong way? Are there better practices for this kind of challenge? I would love to hear your opinions, thoughts and suggestions on this issue.  Thanks Do we know of any living forms on Earth that could continue to live on Mars? When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead. Here is the .  Picture:   It's nothing special but I cant figure out why I get problems rigging this mesh. It would be important and a great Help! Thanks for reading and I know there are a lot of guides answering this question but I tried all and it doesn't seem to work. I want to upgrade my Ubuntu 13.04 to Ubuntu 13.10. I'm unable to do via GUI.   [ The reason why I'm unable to do so:  Via software updater, I proceed ahead and click upgrade (for upgrading my OS). I authenticate by providing my password. Then it proceeds and downloads upgrade tool. That time only (while downloading the tool) error message comes "system program problem detected". It then doesn't proceed ahead and I click to report the problem ]  So, I tried via command line but here also I couldn't succeed upgrading my OS.  For the same I ran   $ sudo apt-get update   Then I ran  $ sudo apt-get dist-upgrade   And then:  ravbholua@ravbholua-Aspire-5315:~$ sudo do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [198 B]                                                                                                  Get:2 Upgrade tool [1,135 kB]                                                                                                         Fetched 1,135 kB in 6s (32.9 kB/s)                                                                                                    authenticate 'saucy.tar.gz' against 'saucy.tar.gz.gpg'  gpg exited 2 Debug information:    gpg: Signature made Friday 01 November 2013 10:34:27 AM IST using DSA key ID 437D05B5 gpg: Can't check signature: public key not found  Authentication failed Authenticating the upgrade failed. There may be a problem with the network or with the server.  ravbholua@ravbholua-Aspire-5315:~$    Please suggest how to go ahead and upgrade my OS. Icons of Meta.SE and Stack Apps have gone missing I have seen this a lot but i ran into this question today:    And the answer (while good) has 83 upvotes which seemed a little over the top.  I see dozens of answers of this caliber every week that only seem to get a few upvotes.    Was there some sort of SO policy that encouraged people to upvote more during this period?  Am I just imagining that answers from this period received more votes than comparable ones now? I am looking for an animated series, shown in the 90s. I remember an episode where the boy went into VR and fought a medusa-like monster.  It may be that this was the premise for the whole series: That the children heroes go into VR every time to fight the evil guys.   I am not sure if the whole series were computer-animated but surely there were such elements together with classic animation.  The style of the series was quite dark and cool for teenage boys. Can you please explain this to me?          Could you please explain this to me?   I am unable to figure out which to use which situation. I did google, and some posts say they are both the same, even if the second one is more formal. Other posts say could is the past tense of can, but in the above example, I don't think could is used as past tense of can.  What is correct way to use these words? Delete one of the OS via Ubuntu I'm currently running on dual boot (win 7 and ubuntu). I'd like to know how to delete my Windows 7 OS using ubuntu how many conditional sentence types are possible? I wonder how many conditional sentence types are possible. Basically, there are four main and two mixed types. By mixing tenses, it could be up to nine of them. Are the rest viable?  I came across the following examples in Full Spate Pre-Profficiency Primer:   After you have just sold alcohol to a young guy. If he is if under eighteen, you should not have sold him the alcohol. If he promised to bring the drinks, he will. If you will take a seat, the doctor will see you shortly. (Likely, the former will demonstrates politeness only.) I would be grateful if you would tell me a little about your friends. (The same politeness, but would instead.) If he will keep eating all those biscuits, he can not expect to stay as slim as he used to be.   I would be grateful if someone could shed more light on the topic. how to replace multiple strings together in Oracle I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value , {2} with some value and {3} with some value .  Is it Possible to replace all 3 in one replace function ? or is there any way I can directly write query and get replaced value ?   I want to replace these strings in Oracle stored procedure the original string is coming from one of my table I am just doing select on that table   and then I want to replace {1},{2},{3} values from that string to the other value that I have from another table Some irreducible character separates elements in different conjugacy classes Let $x$ and $y$ be elements that are not conjugate in $G$.  Then there is some irreducible character $\chi$ such that $\chi(x) \not = \chi(y)$.   Clearly the "irreducible" part isn't important, since any character can be written as the sum of irreducible characters, but I'm having trouble going beyond that.  I'd appreciate a good hint over a full answer, and I'd be most interested in a way to construct a group representation $\varphi:G \to GL(V)$ of $G$ such that the character of the representation takes different values on $x$ and $y$. Wrapped hexagon topology When a square is wrapped at the edges, obtains a torus. Is it possible to do the same for a hexagon?  What is the shape/topology of wrapping a hexagon?     Note: I was just reading this  and came up with this question. I'm a physicist.