A
A
andrewer2015-06-19 16:19:35
PHP
andrewer, 2015-06-19 16:19:35

How to correlate an array (php) and a Mysql DB?

There is a code

$page = array(
    "one" => "https://pp.vk.me/c623728/v623728373/36ddc/E2Ljkp7clFM.jpg",
    "two" => "https://pp.vk.me/c628122/v628122373/5879/hjedDB3SXS4.jpg"
);

And you need to make a request something like this
$res = $link->query("SELECT id FROM `photos` where href='$page [one]' ");

But that doesn't work. Tell.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question