Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    Yep. And thats why we want to run it manually and see if the query itself fails. If so, that's our problem.
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    SQL query:

    SELECT id, title, news, img1
    FROM featured
    ORDER BY ID DESC
    LIMIT 1

    MySQL said:

    #1054 - Unknown column 'img1' in 'field list'

    this is what i got if i did it right
  4. #18
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    changed img1 to img and it went.....

    but my table contents now not showing on the page
  6. #19
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    So, manually ran with 'image' gives u valid result?
  8. #20
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    well the correct values are in run it manually and came back ok....

    Showing rows 0 - 0 (1 total, Query took 0.0001 sec)

    SELECT id, title, news, img
    FROM featured
    ORDER BY ID DESC
    LIMIT 1
  10. #21
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    Well, I viewed your source, and I'm guessing everything you want is there, but just not visible on the page. I would GUESS this has something to do with some definitions in ur CSS.
  12. #22
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    Originally Posted by Triple_Nothing
    Well, I viewed your source, and I'm guessing everything you want is there, but just not visible on the page. I would GUESS this has something to do with some definitions in ur CSS.
    ok so i need to look at my css now omg what a complete numpty.....
  14. #23
  15. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    And I may be wrong, but it appears you have an extra closing DIV tag after your features section. If I see this right, this closes you 'page' DIV before even posting the 'body' DIV.

    Code:
          <div class="featured">
            <ul>
              <li>
                <span></span><a href="#"><img src="images/racer2.jpg" alt=""></a>
                  <div>
                    <h3>Carrick enters as CEO</h3>
                    <p>
                      Draig Racing would like to introduce Dale Carrick as CEO.
                      Phillis said this was the only logical answer
                    </p>
                  <a href="#">Read more &#62;&#62;</a>
                </div>
              </li>
            </ul>
          </div>
        </div>
  16. #24
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    Code:
    <div class="featured">
            <ul>
              <li>
                <span></span><a href="#"><img src="images/racer2.jpg" alt=""></a>
                  <div>
                    <h3>Carrick enters as CEO</h3>
                    <p>
                      Draig Racing would like to introduce Dale Carrick as CEO.
                      Phillis said this was the only logical answer
                    </p>
                  <a href="#">Read more >></a>
                </div>
              </li>
            </ul>
          </div>
        </div>
    i took out each of the </div> to see the effects and still not showing....
  18. #25
  19. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    What's your .featured definition in your CSS?
  20. #26
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    this is what i could find

    Code:
    .header-news div.featured {
    	background:url(../images/racer.jpg) no-repeat right 18px;
    	padding:18px 0 0;
    	height:402px;
    }
    .header-news .featured h4, .header-contact .featured h4 {
    	margin:0;
    	background:url(../images/bg-title.png) no-repeat;
    	width:378px;
    	height:36px;
    	font-size:24px;
    	line-height:29px;
    	color:#f95a5a;
    	font-family: 'Conv_JockeyOne-Regular';
    	font-weight:normal;
    	padding: 0 0 0 15px;
    }
    .header-news .featured h3, .header-contact .featured h3 {
    	margin:18px 0 0 15px;
    	font-family: 'Conv_JockeyOne-Regular';
    	font-size:32px;
    	line-height:36px;
    	color:#fff;
    	font-weight:normal;
    }
    .header-news .featured p, .header-contact .featured p {
    	background:none!important;
    	margin: 15px 0 0 !important;
    	padding: 0 0 0 15px !important;
  22. #27
  23. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    I think your DIV tag's class attribute got altered incorrectly.

    <div class="header header-news">

    Should be:

    <div class="header-news">
  24. #28
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    nah thats not it, that cuts the nav bar and the header img out if i take the extra header out...
  26. #29
  27. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    triple

    i have only gone and sorted it.....

    well part of it...

    still need a bit of help working out a few things...

    cheers pal
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo