javascript - retrieving data from MySQL database with Persian characters

474

I have a problem with retrieving my data back from msql database when I passed my where condition value by javascript to a php side code. here is my code:

$sql="SELECT ItemPrice FROM wp_my_Items WHERE ItemName = '".$q."'";

if ($result=mysqli_query($con,$sql))
{
    while ($row=mysqli_fetch_row($result))
    {
      echo $row[0];
    }
    mysqli_free_result($result);
}
else
     echo "not found";

People are also looking for solutions to the problem: php - How to "dynamize" Dockerfile / Docker Compose?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.