How to save variable as a string in database?
<p>I am trying to save a string with number and math operator into database. I want to save the face value of string, but php or mysql is calculating the string and then saving it to the database. </p>

<p>For example: </p>

<pre><code>$stringValue = "24/2";
$query = "UPDATE winter";
$query .= " SET value =".$stringValue;
$query .= " WHERE name = 'xyz'";
$result = mysqli_query($connection, $query);
</code></pre>

<p>After running the code, I want the value saved in database to be "24/2", but it is being saved as 12. </p>