Adik123 Posted November 9, 2021 Share Posted November 9, 2021 Hello, Can i ask for help? My point is, I have an admin panel that adds adverts to the database and then displays it on the site. The website was made in such a way that there is a main template and subpages that only have: <?php include_once 'includes/connect.php'; $title = 'title'; $bigsub='nvm'; $subject='temat17'; $content='temat17'; include('layout.php'); ?> I wanted to ask how should I do that in the $content variable it displays the items from the database? Quote Link to comment https://forums.phpfreaks.com/topic/314193-databasephppanel-admin-and-layout/ Share on other sites More sharing options...
requinix Posted November 9, 2021 Share Posted November 9, 2021 The answer to that is most definitely We have absolutely no idea how your website works so we don't have the slightest chance of being able to look at that little bit of code you posted and give you useful answers for how to do things like query your database or add content to a webpage. Websites just aren't that simple. Who set up this site? Can you get them to do the work? 1 Quote Link to comment https://forums.phpfreaks.com/topic/314193-databasephppanel-admin-and-layout/#findComment-1591896 Share on other sites More sharing options...
gizmola Posted November 10, 2021 Share Posted November 10, 2021 To add to what requinix said, if you aspire to add to the existing code, you need to spend some time reading it, and trying to understand how it works. We can surmise from your statement that it currently functions to add things to database table(s) and to select items and display them. Study that code, as your answer lies in doing exactly what the existing code already does. Quote Link to comment https://forums.phpfreaks.com/topic/314193-databasephppanel-admin-and-layout/#findComment-1591928 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.