Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:10:39+00:00 2026-05-27T09:10:39+00:00

I know its a bit of a tricky question but like the information about

  • 0

I know its a bit of a tricky question but like the information about the div tag in the html file is actually in the css file, can you do the same with php and mysql?

I know its had dot understand so heres an example!

So you have:

HTML file: <div class="box"></div>

CSS file: .box {height:20px; width: 20px;}

Then speaking of PHP and MYSQL. If I want to display mysql results on a ‘page.php’ can I have a ‘div’ like tag that shows where I want the results to be displayed but have the mysql code actually in another file?

Thanks!

James

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:10:40+00:00Added an answer on May 27, 2026 at 9:10 am

    That’s certainly a strange way of looking at it.

    I think the concise answer is yes, though it is much easier to think of it without any of that html css talk.

    Look into something like the smarty template system:

    http://www.smarty.net/

    for a way to have logic and output in separate files. Mind you I only refer you to smarty because it is a commonly used package and NOT – I repeat – NOT because I approve of the software.

    Basic understanding of PHP will easily reveal any number of ways to achieve what you speak of here. It’s pretty simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know its a bit silly question, but as i am new to android
I know its a very common question, but seems like my situation is a
I would like to know , considering that Clojure uses 32-bit hash for its
I know its a bit too early, but I've been trying out Go (Google's
Im newbie in C# and don't know its syntax. But I know a bit
I'd like to know whether it's possible to clear the NTFS dirty bit in
I know its possible to create activities by doing something like the code bellow,
I know its impossible for 100% protection, but something high or that works for
I know its possible to receive a dayClick event on Fullcalendar. But I would
I know it's a frequent question but I just can't figure it out and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.