I'm trying to select a variable column name in my table, but this doesn't seem to work:  $reponse = $bdd-&gt;prepare('SELECT :day AS day FROM TABLE WHERE id= :id');                $reponse-&gt;execute(array('day' =&gt; 'monday', 'id' =&gt; '5'));  $day = $reponse-&gt;fetch();   Even by setting 'day', to a sure known element in my table (monday), it doesn't work. Same for id.  Does someone know how to fix that?  I have no php error output, only a mysql query error (that doesn't show). By replacing ':day' by monday, I have an output.
Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh-&gt;prepare('SELECT * FROM :table WHERE 1'); if ($stmt-&gt;execute(array(':table' =&gt; 'users'))) {     var_dump($stmt-&gt;fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"
Is there a comma needed before quotation? Sam developed an annual sweepstakes promotion entitled “The Free Gas Punt Return Game”.    Do I need a comma after entitled or not? Need help disabling imessage? I recently changed from iphone to android and i have been having trouble recieving messages from my iphone friends since my iphones screen is broken i cant do anything on it. Any way to fix this problem through icloud or something? Roth-IRA withdrawal penalty: 10% of what? Early non-exempt withdrawal from a Roth-IRA results in a "10% penalty". A 10% penalty on what amount: The amount withdrawn? The remaining balance of the Roth IRA? Both?   Insight appreciated Pre-1972 sci-fi short story or novel: alien(?) tunnel where people try new moves and get destroyed if they're not the correct ones Operation 'Split, All The Metas!' Shall Commence On April 16, 2014 Update 2014-04-17 04:47 UTC: Stable, with some odds and ends to clean up      The main MSO/MSE sites are stable, but there are plenty of corners left to sweep. For details, see:    Not all of them mind you, just Meta Stack Overflow into Meta Stack Exchange.  I'll have you know, factually, that we really did believe this would take place in six-to-eight weeks when it was , but we've finally got a tentative date established.  If things go according to plan, we'll begin the operation shortly after 8:30 PM EDT on the 16th, completing everything within a few hour window. Ideally, all service disrupting endeavors will be completed within the first hour, which include:   The availability of Meta Stack Overflow The availability of Stack Overflow (more on this shortly) The availability of Chat on Meta Stack Overflow   As you know, we'll be bolting on a standard issue per-site meta on Stack Overflow, while breaking the link between what will have become Meta Stack Exchange and Stack Overflow. There's some irritable innards in that particular region, so we'll be asking folks to expect the unexpected during the maintenance window. Affected sites will be in and out of read-only mode, or quite possibly just down for maintenance while we're doing the actual break.  I'll be posting a system message on both Meta Stack Overflow as well as Stack Overflow itself 24 hours before we begin the actual work.   Did I say tentative in a six-to-eight-something time frame again? Why yes, I did - we're currently running some tests on the dev tier to simulate the split as closely as possible, so that we can better anticipate quirks that we need to address prior to actually doing it.  Once the sites have actually been stood up functionally on the production tier, we're going to get to work on finishing touches. This will include things like site settings (which determine bits of text you see in the question prompts, rep thresholds, etc) and all sorts of other fine tuning.  Once we're done:   Stack Overflow will have a blank, empty child meta site just like every other site The new Meta Stack Exchange will be up and running All rooms on Chat Meta Stack Overflow will be moved to Chat Meta Stack Exchange  I'll send over about 150 - 200 questions from MSE to MSO, most of which will be tag or SO-specific feature related posts that got buried by the network stuff without resolution.   If the tentative date moves, I'll update this post with the new date. However, we do not anticipate this happening any later than Saturday, April 19 - in the case that we see down time we can't mitigate and need to do it on a weekend.  The ground work is basically done, we're finishing up sanity now with a great deal of confidence, and we're pretty certain that we'll hit between those dates, if not directly on the tentative 16th.  Questions? Kvetch? Anonymous confessions? Answer below, and I'll address each in comments. I just installed Ubuntu 16.10 on my desktop and have a USB deathadder. The problem is I can't see where the cursor actually is because it appears only in the top left of my screen. The mouse still moves but the cursor graphic doesn't follow Why do some bad traits evolve, and good ones don't? How to customize title page in beamer so that it looks like How can I modify title page so that it looks like it is in  video. Please seek to 16 seconds and watch title page. I do not have permission to post images. I liked this theme and I want to make a beamer theme that looks similar. I tried with beamercolorbox but I failed to position the box to the bottom.      Edit: Here is my minimum working example  \documentclass[xcolor=dvipsnames]{beamer} \defbeamertemplate*{title page}{customized}[1][] { \usebeamerfont{subtitle} \usebeamercolor[fg]{subtitle}  {\flushright \setbeamercolor{author}{bg=white,fg=Red} \usebeamerfont{author} \insertauthor\par \usebeamerfont{institute}\insertinstitute\par }  \vspace{0.2in}  \setbeamercolor{postit}{fg=white,bg=YellowOrange}  \begin{beamercolorbox}[sep=1em,wd=1.062\textwidth,ht=3cm,dp=3cm,right]{postit} \usebeamerfont{title} {\huge \inserttitle}\par \usebeamerfont{subtitle} {\insertsubtitle} \end{beamercolorbox} } \usecolortheme[named=YellowOrange]{structure} \useoutertheme{infolines} \setbeamertemplate{navigation symbols}{}  \institute{Harvard College Professor and\\ Johnstone Family Professor in Psychology, Harvard University}  \title{SAY WHAT?} \subtitle{Linguistics as a Window to\\ Understanding the Brain} \author{Steven Pinker}  \begin{document} { \setbeamertemplate{footline}{} \begin{frame} \titlepage \end{frame} } \end{document} Proof of $(\mathbb{Z}/m\mathbb{Z}) \otimes_\mathbb{Z} (\mathbb{Z} / n \mathbb{Z}) \cong \mathbb{Z}/ \gcd(m,n)\mathbb{Z}$ I've just started to learn about the tensor product and I want to show: $$(\mathbb{Z}/m\mathbb{Z}) \otimes_\mathbb{Z} (\mathbb{Z} / n \mathbb{Z}) \cong \mathbb{Z}/ \gcd(m,n)\mathbb{Z}.$$  Can you tell me if my proof is right:  $\mathbb{Z}/m\mathbb{Z}$ and $\mathbb{Z} / n \mathbb{Z}$ are both finite free $\mathbb{Z}$-modules with the basis consisting of one single element $\{ 1 \}$. So $(\mathbb{Z}/m\mathbb{Z}) \otimes_\mathbb{Z} (\mathbb{Z} / n \mathbb{Z})$ has the basis $\{ 1 \otimes 1 \}$.  Therefore, any element in $(\mathbb{Z}/m\mathbb{Z}) \otimes_\mathbb{Z} (\mathbb{Z} / n \mathbb{Z})$  is of the form $(ab) 1 \otimes 1$ and any element in $\mathbb{Z}/ \gcd(m,n)\mathbb{Z}$ is of the form $k 1 = k$ where $k \in \{ 0, \dots , \gcd(n,m) \}$.  I would like to construct an isomorphism that maps $ab$ to some $k$. Let this map be $ab (1 \otimes 1) \mapsto ab \bmod \gcd(n,m)$.  This is a homomorphism between modules: it maps $0$ to $0$ because it maps the empty sum to the empty sum. It also fulfills $f(a + b) = f(a) + f(b)$ because there is only one element, $a = 1$.   It is surjective. So all I need to show is that it is injective. But that is clear too because if $ab \equiv 0 \bmod \gcd(m,n)$  then both $a \equiv 0 \bmod n$ and $b \equiv 0 \bmod m$ so the kernel is trivial.  Many thanks for your help!! I stupidly ran sudo rm /* followed by sudo rm -R /*  My sites still run, although the vast majority of commands like ls are now broken.  Is there a simple way to get data off the server or reverse some of damage? How to completely remove virtual packages? Why does println(array) have strange output? ("[Ljava.lang.String;@3e25a5") Cannot upgrade unsupported version of Skype for Linux (v5) A Question On Euler's Proof Of the Basel Problem I've studied the proof that Euler gave for the famous , and it would seem that while it is technically correct, he does not justify all of his steps properly. Namely, he assumes that   $$\frac{\sin(x)}{x}=\left(1-\frac{x}{\pi}\right)\left(1+\frac{x}{\pi}\right)\left(1-\frac{x}{2\pi}\right)\left(1+\frac{x}{2\pi}\right)\dots$$  simply because they have the same roots, which is really not a strong enough condition. How do you really show that the equality holds?  He then notices that if you use the above equality, and consider it against the Taylor expansion for $\frac{\sin(x)}{x}$, then you can equate the coefficients of the two infinite expansions at each order, and the result of the Basel problem follows. But how do you know that if you have two different expansions for a function, then their coefficients at each order must be equal?  I would really appreciate if someone could show me how to make these two intuitive, yet informal, steps rigorous. Parse DateTime with time zone of form PST/CEST/UTC/etc How to get rid of notch at pgfplots axes intersection? Integral of type $\displaystyle \int\frac{1}{\sqrt[4]{x^4+1}}dx$ Error "Power::infy: Infinite expression 1/0 encountered". Why do I get this? I have a financial transaction that looks something like this (pseudo):  begin     select record for update     update record(same record as selected)     insert another record into another table commit   If I call SELECT ... FOR UPDATE within the transaction, will the lock be released for the specific rows only when the transaction is committed ? Blog showing up as mobile, won't exit