Hello everyone, I encountered such a problem and do not know how to solve it, please tell me.
There is a php code:
<?php $id = $_GET["id"]; $sql = mysql_query("SELECT newyear FROM tb_image WHERE id = '$id'"); $image = mysql_result(0, 0, $sql); echo "<img src = '$image'> ?>
And I need a user who would put the code on his website about this form:
<script src = "http://site.ru/newyear.php?id=1"></script>
and he will have a code installed in that place, a picture will be displayed which will be received from the database?