I have a field datatype VARCHAR in mysql.
It has to save data like 495/1,495/2
but when i am running query from PHP it save in mysql like 495, 247.5
. so basically mysql divides the values.
Then I have tried this
$sfno = $_POST['sfno']; // i am getting value from HTML form the value is 495/2
$sfno = explode("/",$sfno);
$sfnom = "$sfno[0]"."-"."$sfno[1]";
then mysql subtract the values and save them as 494,493
so how can i save arithmetic operators in mysql database?