Hello,
Thank you for contacting us about connecting your front-end and back-end coding. We have a tutorial on How to use PHP to connect to and retrieve data from MySQL, that provides a working example. This is part of a full class on Using PHP to create dynamic pages.
We are happy to help you troubleshoot further, but will need some additional information.
How are you building your site? For example are you custom-coding/developing this, or using a CMS such as WordPress, Joomla, Drupal, etc.
Can you provide a link to the website?
If you have any further questions, feel free to post them below.
Thank you,
John-Paul