Jump to content

casperpaul

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

casperpaul's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Any hints? I'm thinking ... extract the 19:57:14 portion of the string and just subtract 5 hours from the 19 part ... but suppose it's 03:57:14 ==> it would be a negative result. Any simpler or programmer's way or implementing a function? Thanks, Paul
  2. Hi, I have a string and time conversion question: How can I go about converting a string in the GMT format Fri, 04 May 2007 19:57:14 GMT to an EST format such as Fri, 04 May 2007 2:57pm EST ??? So is there a way I can always extract the portion 19:57:14 GMT ---> x:xxam EST Thanks, Paul
  3. Wow that was fast! Thanks! I have a following question: After running explode, using the same example above, I get the string: http://www.signonsandiego.com/news/politics/20070504-9999-1n4debate.html&cid=1115939682&ei=2gc7Rsr_IZ3C0gHeiOGyAw From here, how get rid of the trailing? &cid=1115939682&ei=2gc7Rsr_IZ3C0gHeiOGyAw Thanks, Paul
  4. Hi, I need to extract a url form a another url string. For example, suppose I have: $a = http://news.google.com/news/url?sa=T&ct=us/0-0-0&fd=R&url=http://www.signonsandiego.com/news/politics/20070504-9999-1n4debate.html&cid=1115939682&ei=2gc7Rsr_IZ3C0gHeiOGyAw How can I write a function to only extract this part: http://www.signonsandiego.com/news/politics/20070504-9999-1n4debate.html&cid=1115939682&ei=2gc7Rsr_IZ3C0gHeiOGyAw Any help is much appreciated. Thanks, Paul
  5. I am trying to extract info from db but it keeps returning "Array".  My code is below, any help will be appreciated.   $conn = db_connect();   $query = "select first_name from users where email='$email'";   $result = mysql_query($query);   $result = mysql_fetch_array($result);   return $result;   Always returns "Array".
×
×
  • 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.