my page that outputs stock quotes looks like:
- Code: Select all
$symbol = mysql_real_escape_string($_GET['symbol']);
$query="SELECT * FROM table WHERE `symbol`='$symbol'";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$name=mysql_result($result,$i,"name");
$symbol=mysql_result($result,$i,"symbol");
$price=mysql_result($result,$i,"price");
$change=mysql_result($result,$i,"change");
$pchange=mysql_result($result,$i,"pchange");
The rest of the above just outputs the values to XML...
in the browser if you type http://myserver.com/getstocks.php?symbol=T
I would get AT&T's latest stocks.
how could I use the above to get multiple stocks if I put in my browser:
http://myserver.com/getstocks.php?symbo ... BBY+IBM+KO
Thanks for reading!!


