Hello,
anybody can suggest me on how to do exact match in php ( for search purpose).
From my reading I understand that we need to use " ".
What is the correct syntax for this?
Is preg-match important here.

Thank you.

Searching what, a database or text?

Searching what, a database or text?

Search records from database.
tq

Something like that?

$query="Select * from table where field=`searchkey`";

you can try like this also:

select * from XYZ where name like "%";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.