Jump to content

scout1idf

Members
  • Posts

    131
  • Joined

  • Last visited

Posts posted by scout1idf

  1. Try this......

    <!DOCTYPE html><html lang="en"><head>     <meta charset="utf-8">     <title>          Clickable Header     </title>          <style type="text/css">     /*<![CDATA[*/#masthead {        min-width: 600px;} #logo {     float: right;     width: 100px;}h1 {     display: block;     font-size: 4em;     margin-top: 1em;     margin-bottom:1em;     margin-left: 1em;     margin-right: 2em;     font-weight: bold;     font-family: Bradley Hand ITC;     color:#38761d;     text-align: center;}a{     text-decoration: none;}   #container {     clear: both;     min-width: 600px;    }#left_col {     float: left;     width: 300px;}     /*]]>*/     </style></head><body>     <a href='###'>          <div id='masthead'>               <div id='logo'>                    <img alt='Relaxed Hair Care Guyana' src=' https://lh4.googleus...ircare2+(21.jpg '/>               </div>          <div id='header'>               <h1> Relaxed Hair Care Guyana</h1>          </div>          </div>     </a></body></html>

    Hope it helps...

    • Like 1
  2. There are many very helpful people around here but also a few (one that comes to mind at the moment has responded to your questions) that don't have a clue but thinks they know everything about everything.

     

    Please don't let one fairly new member (despite his number of posts) make you think this isn't a good place to get answers to your questions.....

     

     

    EDIT:

    Strangely, davej hit on 2 posts that I read just before answering your post :crazy:

  3. #outer {position:relative;}#outer p:after {content: ""; position: absolute; top: 0; left: 0; right: 0; bottom:0; background-color: #CC9933; border: 2px solid red; z-index: -1;}

     

    can you explain this a little more to me? I tried it out and its not working.When I remove the innerHTML of the paragraphs "test"

    The div box just becomes a red line- but its still there !

     

    Sorry, I'm not going to touch this one again.......

  4. It has been pointed out several times already,

     

    NO ONE HERE HAS ANY CONTROL OVER THE SCHOOL!!

     

    I'm sure by now that the mod's are getting tired of telling you this and everyone else is getting tired of reading it.

     

    If you want something added, changed or deleted on the school site, please contact them.

     

    With a little research on your part, you would have found that you can contact them

    directly with your concerns here ==> support@w3schools.com

     

     

     

     

    Sorry if I seem a little short, but I've been trying to quit smoking and little things like this really get on my nerves!!!!

  5. Just a guess, but you have them out of order. You have...

    $dbcon = mysqli_connect(DB_HOST, DB_PSWD, DB_USER, DB_NAME);
    ...and it should be...
    $dbcon = mysqli_connect(DB_HOST , DB_USER , DB_PSWD , DB_NAME);
    I'm pretty sure that it matters what order you put them in.....Hope it helps.
  6. I don't know if this will fix it or not, but give this a try.....

    <?phpif(isset($_GET['tweet'])){      $string = urlencode($_GET['tweet']);      $crc32 = crc32($string);      $con = mysqli_connect("localhost","USER","PASSWORD","DATABASE");            if(!$con){                  die('Database Unavailable');            }      $query = "SELECT * FROM redirect WHERE crc32 = $crc32";      if ($result = $mysqli->query($query)) {            $row_cnt = $result->num_rows;                  if($row_cnt > 0){                        echo 'This Click 2 Tweet Already Exists!<br /><br />';                  }                  else {                        $query2 = "INSERT INTO redirect(crc32,tweet,created-by) VALUES ('$crc32','$string','$_SERVER['REMOTE_ADDR'])";                        $mysqli->query($query2);                              echo 'Here is your Click 2 Tweet. Enjoy!<br /><br />';                       }                  $result->close();      }}echo 'http://c2t.co/'.$crc32;?>

    I changed your `(back tick) to '(single quote) and removed what didn't look correct to me (following code I have used in the past).

     

    Also, it's not a good idea to use PHP short tags (so I've been told) even if they are turned on on your server. (ie... changed <? to <?php)

  7. I'm (very) far from an expert, but from what I read on Wikipedia, it sounds like it's more trouble than it's worth. (read the criticisms section.)

     

    You are probably better off learning MySQL or MSSQL (if you like Microsoft that is).

     

    Just my opinion.......

  8. Look on YouTube. Some of the tutorials on there aren't half bad.

     

    They can at least get you started.

     

    I got this example from a 12 minute video.....

    <!DOCTYPE html><html><head><style type="text/css">body{     background:#000;     color:#fff;     font-size:3em;     font-family:Toledo;}#wss{     opacity:0;     -webkit-transition:opacity 1.0s linear 0s;     transition:opacity 1.0s linear 0s;}</style><script> <!--the array can contain anything you need, <html tags> , text , <images> , etc..... //-->var wss_i = 0;var wss_array =     [                         "smart.",                         "cute.",                         "funny.",                         "black.",                         "young."                    ];var wss_elem;function wssNext(){     wss_i++;     wss_elem.style.opacity = 0;     if(wss_i > (wss_array.length - 1)){          wss_i = 0;     }     setTimeout('wssSlide()', 1000);}function wssSlide(){     wss_elem.innerHTML = wss_array[wss_i];     wss_elem.style.opacity = 1;     setTimeout('wssNext()', 4000)}</script></head><body>    My dog is  <span id="wss"> </span><script>wss_elem = document.getElementById("wss"); wssSlide();</script></body></html>
  9. I've never tried to install xampp, but EasyPHP downloaded fairly quick and took about 45 minutes to install, if I remember correctly.

     

    I have it installed on a flash drive to make it portable.

×
×
  • Create New...