Dear friends,

I am not really sure whether this is the right place to post my topic.

I have a php page which I found somewhere on the Internet which uses
TableSort revisited v3.8 by frequency-decoder.com tablesort.js to sort
table data.

I have got hold of another php page which runs fine but it does not
have headers. I am wondering how to put headers and how to sort the
table. Can somebody help me or tell me where can I get help from.

Here is the code:

<?php
    $arr = array
('UNITECH.NS','VIDEOIND.NS','SUZLON.NS','RPL.NS','HDFC.NS','RNRL.NS','HINDALCO.NS');

    $url= "http://in.finance.yahoo.com/d/quotes.csv?s=".implode("+",
$arr)."&f="."sl1c1p2ohgpvjk";

    echo "<table>";
    $handle = fopen($url, "r");
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE)
    {
        echo "<tr>";
        foreach($data as $d)
            echo "<td>$d</td>";
        echo "</tr>";
    }
    fclose($handle);
    echo "</table>";

?>

Thank you

Reply via email to