I want to insert Facebook Embedded Post in to mysql database table EMBEDDED_POST_MASTER.  My Facebook Embedded Post is:  &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt;(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;  &lt;div class="fb-post" data-href="https://www.facebook.com/photo.php?fbid=634747619920534&amp;amp;set=a.541467239248573.1073741828.523671034361527&amp;amp;type=1" data-width="466"&gt;&lt;div class="fb-xfbml-parse-ignore"&gt;&lt;a href="https://www.facebook.com/photo.php?fbid=634747619920534&amp;amp;set=a.541467239248573.1073741828.523671034361527&amp;amp;type=1"&gt;Post&lt;/a&gt; by &lt;a href="https://www.facebook.com/SilkyQuoteOfficial"&gt;SilkyQuote&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;   When i am inserting this embedded post into table its gives error like :  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div id=\"fb-root\">  I also use $insert_data = mysql_real_escape_string($input_data);   but it is not working, still same error comes, when i insert without embedded post then its inserted successfully.  means the error accure only when i insert Embedded post.
If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?
Given two equivalent norms, convergence in one implies convergences in other. Suppose we have two equivalent norms, $\|\cdot \| \sim \left\vert\!\left\vert\!\left\vert \cdot\right\vert\!\right\vert\!\right\vert$. We assume that $x_n \rightarrow x $ in $(X,\|\cdot \|)$. Show that $x_n \rightarrow x $ in $(X,\left\vert\!\left\vert\!\left\vert \cdot\right\vert\!\right\vert\!\right\vert)$  We observe since the norms are equivalent, there exits constants $\alpha, \beta$, such that $\alpha \|\cdot \| \leq \left\vert\!\left\vert\!\left\vert \cdot\right\vert\!\right\vert\!\right\vert \leq \beta \|\cdot \|$, with $0 \lt \alpha \leq \beta$  Since, $x_n \rightarrow x$ in $(X,\|\cdot \|$) we know that for all $\epsilon&gt;0, \exists K(\epsilon)$ such that for n>$K(\epsilon),$ we have $\|x_n -x\| \leq \epsilon$  Since, we know $\beta \gt 0$ , then $ \beta \|x_n -x\| \leq \beta \epsilon$, Thus we see that $\left\vert\!\left\vert\!\left\vert x_n-x\right\vert\!\right\vert\!\right\vert\leq \beta \epsilon$.  This is how far I've gotten, our goal to is to find a a $J(\epsilon)$ such that for all $\epsilon&gt;0, \exists J(\epsilon)$ such that for n>$J(\epsilon),$ we have $\left\vert\!\left\vert\!\left\vert x_n-x \right\vert\!\right\vert\!\right\vert \leq \epsilon$  My candidate for $J(\epsilon$) is $J(\epsilon) = \frac{K(\epsilon)}{\beta}$ from my above argument, but I'm not exactly sure how to validate this. If someone could help me on the proof, it would be very appreciated. I believe I'm pretty close, just missing something small. I followed Mike's solution from my first question:    My next question is how to add entries (for the abstract and acknowledgements pages) into the table of contents. Objects not rotating with each other (Rubik's cube) Where do I find out how a command/environment is defined? Say I want to redefine the itemize environment, or make a modified version of it. I want to know how it is currently defined. Where do I find this information? If it's some particular package command, I can just look at the .sty file for that package, but if it's something more basic, I don't know where to look...  Is there a reference manual of where all this stuff is explained? Or is there a file in the depths of my texmf tree I should poke around in? Masking problems I am working with masking. Here is my node setting with the mask.   And here is my node settings  And what am i getting is this.    I tried invert node and many settings. It just doesnt work. Where am i going wrong I am wondering if I can minimize a multi-variable function one variable at a time. In other words, is it true that:  $min_{x_1,x_2} f(x_1,x_2)=min_{x_1} min_{x_2} f(x_1,x_2)$ Limit point of the set $G= \{1/n: n \in \mathbb N\}$? In $\mathbb{R}$ , what is the limit point of the set $G= \{1/n: n \in \mathbb N\}$?  Definition:  A point $p \in X$ is a limit of of E if every neighborhood of $p $ contains a point $q \in E$ $q\neq p$  I do understand $0$ is a limit point but shouldn't it be the case that all the points in [0,1] are limit points by the definition? How to find orphaned files and images which are not linked from any css stylesheet or from any node? Is there a way to list all unused files which reside inside public file system and inside a theme directory and list them, or maybe even have an option to delete them automatically?  I mean files which are currently not linked from any css stylesheet or from any node. Fastest way to move Collection from Sharded MongoDB Cluster to a another Sharded MongoDB Cluster I have to move a MongoDB Collection (Size: 1TB+) from Sharded MongoDB Cluster to another[5 shards on both clusters]. During this operation, it is assumed that the accompanying program will be offline, so no need to worry about inconsistent data, but I need to minimize the downtime.  I've tried testing it with mongodump and mongorestore, but looks like that is taking ages to finish.  Please share your experiences for such kind of scenarios.  Note: Cluster has only one collection, so I am open at cluster level sync as well. I tried this:  find . -type f -size 128 -exec mv {} new_dir/  \;   Which didn't work, and it didn't give me an error. Here is an example of what the file looks like, when using stat -x  $ stat -x ./testfile | grep Size    Size: 128          FileType: Regular File How to justify $\phi(n) \ge \sqrt{n}$ If $\phi(n)$ is the Euler-totient function, how can I show that $\phi(n) \ge \sqrt{n}$? Color gradient for bars in pgfplots I want that each bar in my diagram has a color gradient from black to white (from left to the right). However, for the following code, the gradient exists for the entire diagram such that the left bar is black, the middle one is gray, and the right one is white.   \documentclass{report}  \usepackage{pgfplots}   \begin{document}  \begin{tikzpicture}      \begin{axis}[ybar]          \addplot[left color=black,right color=white] coordinates {(1,2) (2,3) (3,4)};      \end{axis}  \end{tikzpicture}  \end{document} How to get Ubuntu download for a Mac? $\sum x_n^2$ and $\sum y_n^2$ converge, what does $\sum (x_n + y_n)^2$ do? So I know that $\sum x_n^2$ converges, and $\sum y_n^2$ converges. ${x_n}$ and ${y_n}$ are both sequences of real numbers. How can I prove that $$\sum(x_n+y_n)^2$$ converges? So far I have $$\sum(x_n+y_n)^2=\sum(x_n)^2 +\sum (y_n)^2 +\sum(2x_ny_n)$$ so I need to prove that $\sum 2x_ny_n$ converges. Is this the right way to approach it? If it is, I am completely lost as to the next step.  I also need to prove that $$\sqrt{\sum(x_n+y_n)^2}\leq \sqrt{\sum(x_n)^2}+\sqrt{\sum(y_n)^2}$$  I assume this will follow pretty easily from a result in the first proof, but I'm stuck on that now, and perhaps it is easier to start with the second one. I have a lot of work I've done on the first problem, but none of it seemed to go anywhere. Any hints?  Thanks! Show $f$ can't be irreducible over a finite field if $f^\prime$ is the zero polynomial. Has 'Ubuntu Software' been renamed to 'Snap Store'? I have a complex embedded Linux software running on a gentoo derivative, on which a certain piece of code gets executed regularly every ~84 minutes. Sweeping through the main code to find places where this code might get executed was unsuccessful, and crontab also seems no possible explanation.   My question: Is it possible, by modifying the code in question, to find out which other process/code/file/service started it in the first place? Are there some information in the /proc directory I can use? Or is it impossible to find out the process that executed the given code? Festival stores voicepack data in the following example directory structure:  /usr/share/festival/voices/&lt;language&gt;/&lt;voicepack name&gt;  What is the simplest one-liner (preferably using ls) to print out just the &lt;voicepack name&gt;'s, in all the potentially numerous &lt;language&gt; subdirectories? How do I disable search-as-you-type text in Ubuntu 17.10 and later? I cannot find enable-interactive-search in    gsettings set org.gnome.nautilus.preferences enable-interactive-search true.     I searched using    gsettings list-recursively | grep search     and    gsettings list-recursively | grep interactive     but no such option.  Can you help me disable this in Ubuntu 17.10 and later? I'm currently working on the following question:  "At least one of Plato and Democritus believed in the theory of forms. Plato believed in the theory of forms only if he was not an atomist, and Democritus was an atomist only if he did not believe in the theory of forms. Democritus was an atomist. Prove, using Natural Deduction, that Plato was not an atomist"  I have been working for quite some time to take the information and turn it into a set of literals and statements I can work with.  So far, I have got $P \lor D$,  $P \Rightarrow \lnot a$,  $D \Rightarrow A$,  $D = A$  However, I cannot seem to make these prove the statement using natural deduction, any hints?