• Notice regarding image hosts and attachments. See here.

PHP/SQL binary query: read specific byte?

Hitman
Soldato
Joined
25 Feb 2004
Posts
2,840
Hi,

Not really sure how to approach this, so hoping someone on here can help :)

Say I 'SELECT' a binary field in a database, and it returns: 0x123456789. Is there a way I can make the script read, for example, the 5th byte in that string? So in that case, it'd select/output '5'?

Cheers
 
Back
Top Bottom