Jump to content

f500designs

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

f500designs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a couple of issues that are driving me insane on this site... http://www.geinc.com/ Issue #1 - I am trying to create a 10px top border that will allow the background to come out along with a 10px bottom border Issue #2 - The copyright at the bottom needs to be separate from the page... always in the same position no matter how long the content on the page is Any ideas? Thanks in advance! Link to my .css http://www.geinc.com/images/style.css http://www.geinc.com/images/up_style.css
  2. this is my time/date code: date_default_timezone_set('CST'); $today = date("l, F j, Y H:i T"); However it is printing time in UTC as the timezone... any ideas?
  3. This is making me pull my hair out: http://www.bluesanddesign.com/gemini/contactus.php Scroll down to where the user will select the "Contact Me Via" checkboxes. The options are on top of each other and I want them to be side by side. Here is the CSS code for that section. Any ideas?? form.ddfm .fmcheck { width: 65%; float: left; display: block; margin-bottom: 1px; } form.ddfm .fmcheck p { width: 65%; float: left; display: block; margin-bottom: 1px; /* padding: 0; margin: 0 0 5px 0; line-height: 140%; */ }
  4. wow... yea... didn't realize it would be that easy... thanks!
  5. I am using this huge super intense PHP Form Mailer... the entire code is below I am trying to figure out how to add a "Reset" button on the bottom that will reset any of the information the customer entered... any ideas? the code is too big to post on here... so i put it in a text file http://www.bluesanddesign.com/gemini/formmailer.txt
  6. does anyone know where or where to find a daily updated CSV file with the Oil Crude prices? I know how to access stocks, but Oil isn't considered a stock. Thanks for your help.
  7. Makeshift Stock Ticker without all of the stupid advertisements that widgets provide... Thank you for all of your help!! <?php $ch = curl_init(); $symbol = 'USO'; curl_setopt( $ch, CURLOPT_URL, "http://download.finance.yahoo.com/d/quotes.csv?s=".$symbol."&f=sl1d1t1c1ohgv&e=.csv" ); curl_setopt( $ch, CURLOPT_HEADER, false ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $output = curl_exec( $ch ); curl_close( $ch ); $contents = explode( ',', str_replace( '"', '', $output ) ); $status = ($contents[4] >= 0) ? 'green' : 'red'; $abscontent = abs($contents[4]); echo "US Oil Fund (USO)<p>$$contents[1] <img src='images/".$status."arrow.jpg'> ".sprintf("%01.2f", abs($contents[4]));?><
  8. that abs($content[4]) didn't work... but i fandangled it a bit... BUT i need it to stay two decimal places... when the number is 2.20 it changes it to 2.2 here's the code updated $status = ($contents[4] >= 0) ? 'green' : 'red'; $abscontent = abs($contents[4]); echo "US Oil Fund (USO)<p>$$contents[1] <img src='images/".$status."arrow.jpg'> $abscontent";
  9. quick question to wrap things up... $status will either output 'red' or 'green'... i need it to output in the middle of calling out a image file name (i.e. redarrow.jpg or greenarrow.jpg) what do i place in the area where there are ?????'s $status = ($content[4] >= 0) ? 'green' : 'red'; echo "US Oil Fund (USO)<p>$$contents[1] <img src='images/??????arrow.jpg'> $contents[4];
  10. you are genius!!! Thanks so much!!
  11. i've been trying that... tell me where i am going wrong... if($content[4] >= 0){ $status=='high'; }else{ $status=='low'; }
  12. This code takes stock information off of Yahoo! Finance's website and outputs it into text as you see below in the echo() statement. It works perfectly. Now what I am trying to do is take the "Today's change" result and determine rather it is positive or negative. The "Today's change" outputs as $contents[4] How do I do this? Thanks! Here is my code below: <?php $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'http://download.finance.yahoo.com/d/quotes.csv?s=USO&f=sl1d1t1c1ohgv&e=.csv' ); curl_setopt( $ch, CURLOPT_HEADER, false ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $output = curl_exec( $ch ); curl_close( $ch ); $contents = explode( ',', str_replace( '"', '', $output ) ); echo "US Oil Fund</p><p>Most recent trade: <b>\$$contents[1]</b></p><p>Today's Change: $contents[4]</p><p>(Prices delayed up to 20 minutes.)"; ?>
×
×
  • 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.