timmah1 Posted September 29, 2008 Share Posted September 29, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.