You can work like this,
In your website with
abc.com?id=1 will read your db data according to
id the out put the result as
JSON like an API call.
The your friend can read the URL (
abc.com?id=1) with JSON or XML parse method in PHP.
This is the way something like many API calls works.
Hope its make sense..