Jump to content

separating content from POST


timmah1

Recommended Posts

I'm trying to post more than 1 symbol, separated by + to grab to stock info with Yahoo's csv file.

 

I cannot get it to work with more than one symbol. If it's just one symbol, it works fine, but when I try to add two or more separated by a comma, nothing happens.

Can anybody help me out?

 

here is the code

$symbol = explode("  ", $_POST['symbol']);
for($i = 0; $i < count($symbol); $i++){
$i = $symbol[$i];
}
//stock quote 
$fp = fopen ("http://finance.yahoo.com/d/quotes.csv?s=$symbol"+"&f=sl1d1t1c1ohgvb3b2&e=.txt","r");
$data = fgetcsv ($fp, 1000, ",")

 

Any help would be greatly appreciated.

 

 

Link to comment
https://forums.phpfreaks.com/topic/126288-separating-content-from-post/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.