How to replace a line in the script using php?

Good day!
There is a widget with Facebook (Page) how to make users register on the website, at registration indicated on your ID band, ID rushed in the database, and the widget code, took ID in the database and substituted instead of the original?

<div class="fb-page" data-href="" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="" class="fb-xfbml-parse-ignore"><a href="">Facebook</a></blockquote></div>
July 2nd 19 at 14:16
1 answer
July 2nd 19 at 14:18
 $from = array('%id%', '%group%', '%etc%');
 $to = array(1, 43, 'smth');
 $str = '';
 $str = str($from, $to, $str);</code-->
How is the connection to the database? - Israel_Lynch57 commented on July 2nd 19 at 14:21

Find more questions by tags PHPAPIFacebook