Jump to content

awebster

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

awebster's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have attached a picture of the directory set up.
  2. My CSS file is located in a CSS directory on my server. All my other css code works. The only thing that didn't is the Background Image.
  3. I am trying to code my site and then I made my background image in gimp and then put it on my server but when I try body { background: url(img/background.png); } The background image doesn't show up and just white displays. I tried putting in the root of my server and that still didn't work. I validated to make sure of a syntax error and I had valid CSS code.
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>is_numeric()</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php $num = rand(); echo('<p>'. round($num) . "</p>"); if (is_numeric ($num)) { echo "<p>Yes it is a number.</p>"; } else { echo "<p>No it is not a number.</p>"; } if(($num&1)) { echo '<p>The number is odd.</p>'; } else { echo '<p>The number is even</p>'; } ?> </body> </html>
  5. Ok thanks. I have read the info on the wikipedia page and still don't understand it that well.
  6. I had it in my subject of the post $num&1. I am using it to find if a number is odd or even and I am wondering if it is just like what a modulus does.
  7. What does the &1 mean after the variable $num? What is the specific purpose of it?
×
×
  • 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.