Skip to content
Advertisement

How to select and view database with specific value?

So I’m trying to search and print the value from the PHPMyAdmin database. But the result shows all row which has variable with containing the value. Like when I try search variable int bulan that has value 2. This also shows a row that has a value of 12, 22 or 23 as a result.

this is my code

Advertisement

Answer

Like operator gives all matches where value 2 is in there that’s why you get 12, 22 or 23 in the output you should use equal to operator for an exact match.

Read More about Like operator

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement