Jump to content

Database,PHP,Panel admin and layout


Adik123

Recommended Posts

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?

Link to comment
Share on other sites

The answer to that is most definitely :psychic:

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?

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.