Select by php pdo
There is a database "**movies**", it has several rows.

I'm using this code for db-connection:

    $db_name = 'movies';
	try {
    	$db = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pass);
    }
    catch (Exception $e) {
    	echo $e->getMessage();
    }

Trying to get data from row with name "**movie_meta**".

This row has 4 columns: `meta_id, movie_id, meta_key, meta_value`.

`meta_id` is unique.

`movie_id` can be used more than one time.

`meta_key` is unique.

`meta_value` is some text.

All ids are integers.

I know value of the `movie_id` and what to get `meta_value` of the `meta_key` "**links**".

Like we have a row `1|24|links|http://google.com` inside "**movie_meta**"

We make a request for `movie_id` = 24, search for `meta_key` = links and receive `http://google.com`

**How do I do this?** (don't know how to code)

Thanks.
Select by php pdo
===

There is a database "**movies**", it has several rows.

I'm using this code for db-connection:

    $db_name = 'movies';
	try {
    	$db = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pass);
    }
    catch (Exception $e) {
    	echo $e->getMessage();
    }

Trying to get data from row with name "**movie_meta**".

This row has 4 columns: `meta_id, movie_id, meta_key, meta_value`.

`meta_id` is unique.

`movie_id` can be used more than one time.

`meta_key` is unique.

`meta_value` is some text.

All ids are integers.

I know value of the `movie_id` and what to get `meta_value` of the `meta_key` "**links**".

Like we have a row `1|24|links|http://google.com` inside "**movie_meta**"

We make a request for `movie_id` = 24, search for `meta_key` = links and receive `http://google.com`

**How do I do this?** (don't know how to code)

Thanks.