1

I have a table called mytable that contains a row with the following data:

uid: 1 (type: int(10))

email: it is visible as 971f2d23 in phpMyAdmin (type: varbinary(16))

I want to run a SELECT query like that:

$conn->query("SELECT * FROM mytable WHERE email=971f2d23");

but this doesn't return any rows.

I also tried:

$conn->query("SELECT * FROM mytable WHERE email=0x971f2d23");

but still no rows.

Any help would be appreciated.

Thanks!

Nico Haase
  • 9,476
  • 35
  • 35
  • 57
gave
  • 187
  • 13

1 Answers1

1

Try this

$conn->query("SELECT * FROM mytable WHERE email='971f2d23'");
tadman
  • 200,744
  • 21
  • 223
  • 248
Yogesh
  • 9
  • 3