This is my code,i want to check against empid if cli and callduration both are same and evaluated before it..then show this cli and call duration is already evaluated..if cli is same but duration is different then show start evaluation and also if cli and duration both are different then also show start evaluation.  The problem which i am facing is that my code is only check one statement like empid=1,cli=123,calldurations is 1min &amp;01:01 then its check only 1 min duration and on 01:01 duration print the statement start evaluation..the code should show call is already evaluated..  &lt;?php $con = mysqli_connect("localhost","root","","usman"); $check = "SELECT COUNT(*) FROM eval WHERE empid = '$_POST[empid]' &amp;&amp;  cli =  '$_POST[cli]'  &amp;&amp; callduration = '$_POST[callduration]' "; $result = mysqli_query($con,$check); $count = mysqli_fetch_array($result); if(current($count) &gt; 0) {   echo "&lt;tr&gt;&lt;td&gt;This call is already evaluated against &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; Emp-ID " . $_POST["empid"] . "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;CLI - " . $_POST["cli"] . "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Call Duration - " . $_POST["callduration"] . "&lt;/td&gt;&lt;/tr&gt;"; } else {   echo "&lt;a href='evaluationsheet.php?empid= ". $_GET["empid"] ." &amp;&amp; agentname= ". $_GET["agentname"] ." &amp;&amp; doj= ". $_GET["doj"] ." &amp;&amp; department= ". $_GET["department"] ." &amp;&amp; division= ". $_GET["division"] ." &amp;&amp; designation= ". $_GET["designation"] ." &amp;&amp; image= ". $_GET["image"] ." &amp;&amp; cli= ". $_POST["cli"] ." &amp;&amp; callduration= ". $_POST["callduration"] ."  '&gt; Click Here To Start Evaluation &lt;/h1&gt;";  } ?&gt;
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?
Write in NTFS using Mavericks I was able to read and write NTFS filesystems normally in Mountain Lion, but after the upgrade this stopped to work.  I installed ntfs-3g and fuse4x using homebrew in Mountain Lion and followed the instructions displayed by homebrew to finish the installation of fuse4x kernel extension.  To try to solve this problem I removed ntfs-3g, fuse4x and fuse4x-kext and reinstalled them. But this didn't solve my problem.  Does anyone know how to solve this? Thanks. How do I change permissions on a FAT32 formatted drive? What do I do? I looked at a similar question to mine and there was an answer saying to make sure Java is allowed past the firewall. So I checked and it already is. I've tried uninstalling and installing both Minecraft and Java but nothing has changed.  says that all services are fine, so what's going on? I bought a 2nd account to use as an alternative in-game account and now I can't log in.  (I cleared the email and password boxes for obvious reasons in this screenshot: security purposes) Is there a way to configure your Stack Overflow account so that you receive notification emails when posts are made to specific tags?    Or do you simply have to log on to see new posts? Would the One Ring have stayed hidden if Bilbo hadn't turned up? Does there exist a surjective homomorphism from $(\mathbb R,+)$ to $(\mathbb Q,+)$ ? Does there exist a surjective homomorphism from $(\mathbb R,+)$ to $(\mathbb Q,+)$ ?  ( I know that there 'is' a   'surjection' , but I don't know whether any surjective homomrophism from $\mathbb R$ to $\mathbb Q$ exist or not . Please help . Thanks in advance ) We all know , but that guidance is, naturally, geared toward main sites, where we want to keep things clean and focused.  Meta, on the other hand, is a site's "second place", with some different rules and conventions.  For example, questions on main sites can be closed as primarily-opinion-based, but meta is all about opinions.  There's a "discussion" tag and such questions collect many opinions.  Meta is different.  Occasionally I see comment flags on metas and I'm never sure what to do with them.  Setting aside things that are blatantly offensive or spam (that's a no-brainer), is there such a thing as "too chatty" or a comment discussion that should be moved to chat on meta?  I am very conservative in deleting things on per-site metas (except on  posts, which like main should stay focused).  Are there any guidelines specific to per-site metas?  I'm specifying per-site metas and not MSE because MSE seems to have conventions that fall somewhere between "main site" and "per-site meta".  If the answer is the same for all metas then great, but I don't want to assume it'll be the same. I was browsing through the apt folder to try my proxy settings and I was unable to find the apt.conf file in Ubuntu 11.04. Is there any alternative file for it?  Adding proxy settings to 99-synaptic in apt.conf.d does not help as it gets overwritten everytime I restart the system. How can i find the python triggered by the GUI? My USB drive used to be originally 8GB when I bought it.  I'm trying to reformatted in Windows 7 by right clicking on the drive and selecting Format.... But the capacity only shows 250MB.  Is there something I can do to get the original size back? Maybe it got partitioned in a weird way?   The  flash drive is a SanDisk Cruzer Micro 8GB. I got it from Wal-Mart but this is the same drive. For realism should I use the maximum number of Subsurf levels? I was wondering if I always need to use the maximum value of the options from the elements of "Add Modifier". For example, do I need to use the view 6 in Subdivision surface? I know it depends of what we are trying to achieve, but we all want the same. Make something look the most believable. So do you always use the maximum value Blender offers? outline object effect How can I achieve an outline effect similar to the ones found in League of Legends or Diablo III?      Is it done using a shader? How? I would prefer answers that are not tied up to any particular engine but one that I can adapt to whatever engine I'm working on. Problems in Creating InfoWindow on each individual circle with mouseover using Google Map API Probability of success on third and fourth trials? I have a pretty basic probability question, but I'm just having difficulties remembering what distribution this is.  A coin is tossed until a head appears two times in a row. Given that we are using a fair coin, what is the probability that we toss the coin exactly 4 times such that the two consecutive heads are the 3rd and 4th trials?  I know that this would be fairly easy to solve by brute force and listing out the different probabilities, but I'm a little confused as to how to use a "shortcut" such as identifying this as a binomial distribution. I also don't know how to account for the probability that we are using 4 tosses.  Any help is appreciated. Thanks! Cascading Drop down in SharePoint Online Should I retag a question with a tag that is based on the answer and not the question? Here's a scenario:  Someone asked about "How to build a SQL query to get count and blah blah blah..."  His only tag is . I added the  and  tags to it.  Someone else answered with a nice SQL statement that has a "group by" statement which seems "logically inevitable".  I proceed to add a tag . I did that on the basis that someone who searches for  will be able to find this post useful, just as I did. My concern is, it wasn't described at all in the question, nor was it implied, unlike  and .  What is the community opinion?  The scenario above is a real one . And the one who answered it nicely is Jon Skeet. I have a C++ library that provides various classes for managing data.  I have the source code for the library.  I want to extend the C++ API to support C function calls so that the library can be used with C code and C++ code at the same time.  I'm using GNU tool chain (gcc, glibc, etc), so language and architecture support are not an issue.  Are there any reasons why this is technically not possible?  Are there any gotcha's that I need to watch out for?  Are there resources, example code and/or documentation available regarding this?    Some other things that I have found out:   Use the following to wrap your C++ headers that need to be used by C code.     #ifdef __cplusplus extern "C" {   #endif   //   // Code goes here ...   //   #ifdef __cplusplus   } // extern "C"   #endif    Keep "real" C++ interfaces in separate header files that are not included by C.  Think  here.  Using #ifndef __cplusplus #error stuff helps here to detect any craziness. Careful of C++ identifiers as names in C code Enums varying in size between C and C++ compilers.  Probably not an issue if you're using GNU tool chain, but still, be careful. For structs follow the following form so that C does not get confused.  typedef struct X { ... } X  Then use pointers for passing around C++ objects, they just have to be declared in C as struct X where X is the C++ object.   All of this is courtesy of a friend who's a wizard at C++. Merging dictionaries in C# What's the best way to merge 2 or more dictionaries (Dictionary&lt;T1,T2&gt;) in C#? (3.0 features like LINQ are fine).  I'm thinking of a method signature along the lines of:  public static Dictionary&lt;TKey,TValue&gt;                  Merge&lt;TKey,TValue&gt;(Dictionary&lt;TKey,TValue&gt;[] dictionaries);   or  public static Dictionary&lt;TKey,TValue&gt;                  Merge&lt;TKey,TValue&gt;(IEnumerable&lt;Dictionary&lt;TKey,TValue&gt;&gt; dictionaries);   EDIT: Got a cool solution from JaredPar and Jon Skeet, but I was thinking of something that handles duplicate keys. In case of collision, it doesn't matter which value is saved to the dict as long as it's consistent. How to make this curly 'R' (ℛ)? Which package has a similar looking fancy R or does anyone know how to make one? (Note: the line underneath the R is just the notebook paper... this is from a scanned set of notes). Word for someone that always has to be right Is there a word for someone that always has to be right? The person gets angry if they are not.