User Profile

Collapse

Profile Sidebar

Collapse
megahurtz
megahurtz
Last Activity: Mar 4 '08, 08:53 PM
Joined: Sep 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • megahurtz
    started a topic Storing fonts on my server

    Storing fonts on my server

    Just a quick question regarding fonts... If I were to build a webpage using a font that some people may not have, is it possible to store that font on my server for the client to use when they visit my page? Or do they have to have the specified font for it to display properly?
    See more | Go to post

  • megahurtz
    started a topic Redirecting subfolder to other URL

    Redirecting subfolder to other URL

    Is there any way using either Apache or some other method that I can redirect requests to a specific subfolder to another URL?

    For example, when somebody types in http://www.mydomain.co m/email they get redirected automagically to http://www.mydomain.co m/?p=email, or something like that.

    I'm sure this is a simple question but I am fairly new to web hosting so I'm not sure how to accomplish this. Thanks in advance to whomever...
    See more | Go to post

  • megahurtz
    started a topic Pseudo-random month based selection
    in PHP

    Pseudo-random month based selection

    This isn't necessarily specific to PHP, but I am trying to figure out a way to pseudo-randomly generate a number based on the month. To clarify a little, I want the number returned to stay the same for the entire month, and then change to another "random" number for the next month. There would also need to be a ceiling on how big the number could be. I can't think of a way to write this, is there anyone able to help?
    See more | Go to post

  • megahurtz
    replied to Selecting records within a date range
    Thanks that helped a ton!!! I had to modify it a little bit it works now! Thanks, you have no idea how happy this makes me!!! :)...
    See more | Go to post

    Leave a comment:


  • megahurtz
    replied to Selecting records within a date range
    Then the item will show up, even though it is expired
    See more | Go to post

    Leave a comment:


  • megahurtz
    started a topic Selecting items from a DB
    in PHP

    Selecting items from a DB

    I need to put together an SQL statement and I can't think of how to make it work properly. The scenario is that I have news items in a database that have a launch time and can optionally have an expire time set. I want to select all records that are above the launch time and below their expire time (if it is set). What I have so far is:
    [code=php]
    $rightnow = mktime();

    sql = "SELECT *
    FROM teamshadow_news...
    See more | Go to post
    Last edited by pbmods; Sep 14 '07, 01:20 AM. Reason: Added CODE tags.

  • megahurtz
    started a topic Selecting records within a date range

    Selecting records within a date range

    I need to put together an SQL statement and I can't think of how to make it work properly. The scenario is that I have news items in a database that have a launch time and can optionally have an expire time set. I want to select all records that are above the launch time and below their expire time (if it is set). What I have so far is:

    [PHP]$rightnow = mktime();[/PHP]
    [CODE=mysql]SELECT *
    FROM teamshadow_news
    ...
    See more | Go to post
    Last edited by mwasif; Sep 13 '07, 04:51 PM. Reason: Added code tags.
No activity results to display
Show More
Working...