Results 1 to 8 of 8

Thread: SQL problems and CSS problems

  1. #1
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts

    SQL problems and CSS problems

    Just two things. First off, i've got the correct formatting for my date which is pulled from the database but i deleted the database and have forgotten which data type i had set that entry in the news table to. Which one is it? Datetime? Date? etc. 'cause none of them are working :X

    Also, http://www.kezzer.co.uk/new/ Check that out, the background in main should expand all the way with the text. Not sure why this isn't working, any ideas?

    Muchos gracius

  2. #2
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    Depends what database you're using... If we're talking mysql then date is just a date (YYYY-MM-DD) and datetime is the date and the time - it's also known as a timestamp in other databases (YYYY-MM-DD HH:MM:SS)... Though IIRC some databases that use timestamp also include milliseconds...

    Not sure what you're on about with the 2nd bit. Got a photochop of what you want it to look like?

  3. #3
    ?!
    Join Date
    Sep 2004
    Posts
    1,045
    Thanks
    2
    Thanked
    6 times in 5 posts
    I thought SQL date statements are DD-MM-YY , in use with TO_DATE and other functions? Is so in Oracle. The website could be screwing up as you may not be using %.

  4. #4
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    it all depends on system date format on the server as to how the date in SQL comes out.

    In the server it may be stored one way, but when displayed via scripting it can change.

    If you're using ASP, heres the function i use to normalise dates...

    Code:
    function FormatDate(szDate)
      FormatDate = right("00" & day(szDate), 2) & " " & monthname(month(szDate), false) & " " & year(szDate)
    end function
    This gives you back something along the lines of '05 August 2004'.
    The advantage of using the month as a string value means that it'll never revert to an American date format (08 May 2004), even if the server is set that way.

    HTH!

  5. #5
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    you probably want datetime

    You've set the height of the container object to 100% but then the content is nested in a floating div so it sets the object to 100% of the height of the container which in this case is the window size. You need to get rid of the float to make the background continue for all the content

  6. #6
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Cheers guys, time is working now, had to re-create the table anyway 'cause of some other problems.

    The background is expanding to the left column only now but it works fine (just need to fix all the problems in IE now :S )

    Anyway, check it out, http://www.kezzer.co.uk/new/ If it's not there then go to the root website since i'll be moving it soon. Any feedback would be nice

  7. #7
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    The copyright info on the right hand side drops off onto the background in Firefox.

  8. #8
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Quote Originally Posted by Caged
    The copyright info on the right hand side drops off onto the background in Firefox.
    Yeh i know, that's the only problem, when there's enough content in the left column it will fill out so that's not a problem really. But other than that?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cross-Browser CSS problems
    By TuShan in forum Software
    Replies: 0
    Last Post: 17-11-2004, 10:53 PM
  2. CSS problems
    By Kezzer in forum Software
    Replies: 11
    Last Post: 18-03-2004, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •