I have a mySQL table that has a column like this:
ID
-----
0352
5432
4382
3520
30593
3992
295
I want to detect if a specific number exists or not.
Note: This table has more than just the ID column.
e.g.
$num = 5432
if($num IS IN ID) {
// code
} else {
// code
}
1 Answer