I'm trying to get different band names, but then i type  $Band = "Azuolas" and $Band="Ąžuolas" I gate both at the same time. how can I fix this?  $band =$_POST['band_name']; $sql= "SELECT  Band FROM Songs WHERE Band='".$band."' "; $query_run =mysqli_query($con, $sql); while($mysqli_fetch_assoc =mysqli_fetch_assoc($query_run)){ echo $mysqli_fetch_assoc['Band']."&lt;br&gt;"; }
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
How to prevent book class from vertically justifying the contents? If we use the book class, the output looks like the following screenshot.    But if we use the article class, the output looks better as follows.    The MWE is given as follows. Note: please enable -shell-escape!  \documentclass[12pt]{article}% please change to article and compare the output.  \usepackage{filecontents} \begin{filecontents*}{"article sample.tex"} \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1-20] \end{document} \end{filecontents*}  \usepackage{showexpl}  \lstset {     breaklines=true,     breakindent=0pt,     tabsize=2,     columns=flexible,     language={[LaTeX]TeX},     basicstyle=\small\ttfamily\hbox{}, }  \newcount\x  \newcommand\MyLTXinputExample[2][2mm]{% % #1: length of gap, % #2: filename with .tex,      \lstinputlisting[caption=\url{#2.tex}]{"#2.tex"}     \bgroup         \parskip=#1\relax         \fboxsep=0pt         \pdfximage{#2.pdf}%         \x=0         \loop             \ifnum\x&lt;\pdflastximagepages                 \advance\x by 1                 \noindent\hfill                 \fbox{\includegraphics[width=0.5\dimexpr\linewidth-4\fboxrule-#1\relax,page=\x]{"#2"}}%                                  \ifnum\x&lt;\pdflastximagepages                 \advance\x by 1                 \hfill                 \fbox{\includegraphics[width=0.5\dimexpr\linewidth-4\fboxrule-#1\relax,page=\x]{"#2"}}%             \fi                 \hfill\null\par         \repeat     \egroup }  \PassOptionsToPackage{obeyspaces}{url} \usepackage{hyperref}  \begin{document} \immediate\write18{pdflatex "article sample"} \MyLTXinputExample{article sample} \end{document}   How to prevent book class from vertically justifying the contents? In other words, I want to use the book class but its output (only the justification is under consideration) must look like the output that article class produces. I am preparing a paper in the field of Computer Science.  In order to report test results, we usually run a number of tests and report the average of those tests.  For each test, we generate random data.  Because of the randomness, at some points, the results may come out not as expected.  For instance, a graph may be like:   Usually, one should explain why on points 8, 11 and 12 there is a decrease on the plot. Probably, it is because of that randomness.  Not hand-crafting all the graph, but just manipulating a few points makes the graph acceptable:   Since three weeks or so, I work my ass off and try to figure out why my resulting graph looks like the first one. Sometimes I feel like yielding to temptation and just modify the raw data before I go crazy.  I believe, at this point the title became misleading, so let me make it clear:  I am not seeking an advice on data manipulation. I will not manipulate my data. However, I ask to myself "how the hell this can be detected?"  And now, I don't only ask to myself, but to whole community. How is this detected? For editors, referees out there, have you ever detected something like this? Can Quantum Entanglement and Quantum Superposition be considered the same phenomenon? Quantum entanglement is known to be the exchange of quantum information between two particles at a distance, while quantum superposition is known to be the uncertainty of a particle (or particles) being in several states at once (which could also involve the exchange of quantum information for a particle that is known to be in several locations simultaneously).  I was wondering if all of this was nothing more but the exchange of quantum information between different masses, and if this could clear up all the confusion in terms of how quantum systems connect in this field of science.  A clear explanation for how both of these quantum phenomena work, and if they really are connected (the exchange of quantum information?) would be much appreciated. Overfull hbox using biblatex Can I ignore coefficients for non-significant levels of factors in a linear model? After seeking clarification about linear model coefficients  I have a follow up question concerning non-signficant (high p value) for coefficients of factor levels.  Example: If my linear model includes a factor with 10 levels, and only 3 of those levels have significant p values associated with them, when using the model to predict Y can I choose to not include the coefficient term if the subject falls in one of the non-signficant level?  More drastically, would it be wrong to lump the 7 non-significant levels into one level and re-analyze? Asking the user for input until they give a valid response Given $A$ and $B$ positive-definite matrices and $Q$ unitary matrix, prove that if $A = BQ$, then $A=B$. $Q$ is unitary, so $QQ^*=I$ If $A$ and $B$ are positive-definite, than $A=A^*$ and $B=B^*$. $A^*=(BQ)^*=Q^*B^*$ $A^2=AA=AA^*=(BQ)(Q^*B^*)=B(QQ^*)B^*=BIB^*=B^2$ $A^2=B^2$. I don't know how to use the fact that $A$ and $B$ are positive-definite to finish the proof. What is the maximum length of a URL in different browsers? What is the maximum length of a URL in different browsers? Does it differ among browsers? Is a maximum URL length part of the HTTP specification? Looking for a short story about a boy discovering that the government puts mind control chemicals in his cereal I would have read this around 1985-1998 because I remember being in school at the time. It may have been in a short story collection with "The Ugly Little Boy" and a story about a family dealing with people in the future coming back to enhance the intelligence of their baby with enfante terrible results. A boy, grade school age or so and very intelligent, discovers (or possibly just decides) that there are drugs in the food that prevent one from thinking critically. The details are kind of fuzzy in my head, but I remember that he at one point distills the chemical from his cereal, which he'd detected as having a high concentration, and overdoses. He's convinced that the government is trying to silence him — a scene that sticks out in my mind was him falling on a moving sidewalk and tearing his clothing as he tries to escape two "men in black" type figures that are pursuing him. The short story ended with him deciding that he was better off just consuming the food and being happy in his ignorance.  Years later, as an adult learning about mental illness, it struck me that the story was slightly ambiguous as to whether there actually were chemicals, and that the use of drugs that dulled his creativity and intelligence, and the decision to take them anyhow, was reminiscent of the feelings that manic people have toward their medications.  Anyone know what this one was? Installing PHP 5.3 in Ubuntu 14.04 I've just installed Ubuntu 14.04 and am trying to install php 5.3. But when I run   apt-get install php5    it's installing php 5.5.9-1ubuntu4. I need to use php 5.3 in the system because the application I'm working on is built with php 5.3.   How can I achieve this? Although we didn't do any changes, this new error appeared in the GSC Structured Data section:    I don't really get what it means. There are many fields for Schema.org, is homeLocation suddenly a required field? Does that make any sense? What do you call a person who keeps reminding others of one’s favors for them? When you fight with a person who then keeps telling you I did that I did this for you and so on. I want to tell them that it's inappropriate to remind others of the favors you did for them, especially if I appreciate those favors and try my best to return them. Are PDO prepared statements sufficient to prevent SQL injection? Are there any tools in Blender that take irregular polygons and make them regular (approximate a circle)? I'm specifically looking for a solution that works with preexisting polygons. Also, it would be nice if it keeps the overall position after making it regular.    Irregular Polygons    Regular Polygons I read it in English in the United States, somewhere in the 1990s. I got it off of the big bookshelf in our family room, which means it could be a good bit older; some of the books were my Dad's. At the beginning, a young boy (maybe an early teen?) leaves his house, where he lives with his parent or parents, and takes a test to become a spaceship pilot for the military. Part of the test judges reaction speed, and he fails the test. He later learns (I think when he's approached by an agent of the government) that he "failed" because he has some sort of enhanced fortune that meant that he was actually giving the results before they could be displayed on the screen. At the time, I remember thinking that the book felt a bit like a Star Wars rip-off.  Years later, I read that one of the Star Wars books (probably now Legends) had Luke similarly failing the Imperial Academy test because he gave his answers too quickly, and it amused me that I was uncertain as to which had come first.  I don't remember anything concrete about the cover, although I have a general impression that it was white. Definitely futuristic. My impression was that the boy was wearing a white uniform for the testing and that the government agent who spoke to him had a grey beard, but I might be mixing bits of Star Wars in there. How to write startup script for Systemd? I have 2 graphics cards on my laptop. One is IGP and another discrete.   I've written a shell script to to turn off the discrete graphics card.  How can I convert it to systemd script to run it at start-up? Attributive nouns vs. of-genitive Is there any app for Stack Exchange? Is there any app available in the Android Market for Stack Exchange sites? A proof using Yoneda lemma What is this sand covered insect? I have found in a wooden house, in the mountains of central Spain this very curious insect:    I was wondering if that was its skin or whether it's decomposition or sand or saw-dust.  That particular region of Spain does have stink-bugs ... but this one doesn't look like anything I've seen before.  A google image search returns mostly arachnids ... but it seems to have only 6 legs.