The mysql query will not allow the entry which has single qoutes in it.
For example if you want to insert the name O’brain from a form to database.
then use “mysql_real_escape_string” for inserting the name as it is.
For more detail see this page.
http://php.net/manual/en/function.mysql-real-escape-string.php
From the journal
How to write SQLquery with escapes special characters in a string.
The mysql query will not allow the entry which has single qoutes in it. For example if you want to insert the name O’brain from a form to database. then use “mysql\ real\ escape\ string” for…
Explore this page ↓Keep reading
- tech / 2024
Embracing AI in Web Design: Top Tools to Elevate Your Workflow ↗
In today’s fast-paced digital landscape, web design companies are increasingly turning to artificial intelligence (AI) to streamline workflows, enhance creativity, and improve efficiency. With the…
- tech / 2024
GitHub repo for simple Next.js project ↗
I have been learning Next.js and here is my repo and a small demo of what I have done so far. GitHub Repo: https://github.com/ramchandev/anartby2 Quick Demo of these features: Pages: Home Page,…
- tech / 2024
How to consume data from Hygraph using Params – Part 2 ↗
You can get data from Hygraph using useEffect and useState. You can follow these steps: Create a file inside your app folder: app > (routes) > products > \ components > CatDetails.jsx Include Section…