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 8563757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:02:12+00:00 2026-06-11T17:02:12+00:00

OVERVIEW : I have script which allows users to chose a background and this

  • 0

OVERVIEW: I have script which allows users to chose a background and this option is saved in the mysqlDB. This is then pulled at login and saved within the session.

Issue: The problem I am having is that in I.E. only the background shows and the web content does not. It works in chrome, and I have read up on different ways to show the background, but it seems to not be working. Is there anything wrong with my script?

Script:

<style> body { background: url('http://domain.co.uk/images/assets/<?php echo "".$_SESSION["USER"]["bg"]."" ?>.jpg')  no-repeat top; } </style>

session start script

<?php 
session_start();
if(!isset($_SESSION["USER"])){
    header("Location: ../index.php");
}
?>

check login / gen session

if(mysql_num_rows($result) == 1){
while($user_data = mysql_fetch_array($result)) {
$_SESSION["USER"]["bg"] = $user_data["bg"];

My start session script and generate works, and I have posted the relevent snippits here

  • 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-06-11T17:02:13+00:00Added an answer on June 11, 2026 at 5:02 pm

    In fact <style> must be included inside head. Or you can just add attribute style="background: url('http://example.com/images/assets/<?=$_SESSION["USER"]["bg"]?>.jpg" to <body> tag. I think that will help.

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

Sidebar

Related Questions

Overview I have an iOS app which sends local notifications at specific dates. I
Overview I have an iOS project which contains 2 navigation controllers as shown in
I have a overview page containing a list with some links from which multiple
Problem Overview: My application has an enrollment form. Users have a habit of entering
Overview: I have two text boxes at the top of this form for inputting
I have xml file as below: <Name ns1:translate=yes>Overview</Name> <TextValue>Start</TextValue> <Title ns1:translate=yes>This is a book</Title>
Overview Although this question implicates lex/yacc, which are written in C, it's fundamentally centered
I have a Perl Script which performs a specific operation and based on the
I have a php page which includes jQuery and a script.js file. When I
Overview: I have an advancedDataGrid that I am using a GroupingCollection on and I

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.