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
  • 11,420
  • 35
  • 43
  • 69
gave
  • 181
  • 13

1 Answers1

1

Try this

$conn->query("SELECT * FROM mytable WHERE email='971f2d23'");
tadman
  • 208,517
  • 23
  • 234
  • 262
Yogesh
  • 9
  • 3