Menu

#4 bad output

open
nobody
None
5
2006-01-20
2006-01-20
Anonymous
No

i get an output that looks something like this:
"","","","","","","","","", "Savings
Account","+","Checking Account","=","Credit
Card","+","OE","","Desciption", "$1278.21","","$466.36
","","","","","","Starting as of 1/20", "","","$-
415.50","","","","","","Paid for school", "$-
150.00","","$150.00","","","","","","Transferred 150
from savings to checking", "","","$-
47.01","","","","","","Paid 47.01 for Cell
Bill", "","","","","","","","","", "","","","","","","
","","", "","","","","","","","","", "","","","","",""
,"","","", "","","","","","","","","", "","","","","",
"","","","", "","","","","","","","","", "","","","","
","","","","", "","","","","","","","","", "","","",""
,"","","","","", "","","","","","","","","", "","","",
"","","","","","", "","","","","","","","","", "","","
","","","","","","", "","","","","","","","","", "",""
,"","","","","","","", "","","","","","","","","", "",
"","","","","","","","", "","","","","","","","","", "
$1128.21","","$153.85","","$0.00","","$0.00","","", ""
,"","","","","","","","", "","","","","Total Cash
before CC:","","$1282.06","","", "","","","","Total
Cash after CC:","","$1282.06","","",
for the example document, im running xp pro and i
have office xp installed.
i have changed no settings on the example.php, what
am i doing wrong?

Discussion

  • msumesh

    msumesh - 2006-03-03

    Logged In: YES
    user_id=1466421

    if($data->sheets[0]['cells'][$i][$j]!=""){
    echo "\"".$data->sheets[0]['cells'][$i][$j]."\",";
    echo $i."-->".$j;echo "<br>";

    Check this one

     
  • Jeremy Walker

    Jeremy Walker - 2007-03-22

    Logged In: YES
    user_id=268023
    Originator: NO

    Table Output (Basic)

    error_reporting(E_ALL ^ E_NOTICE);
    echo "<table>";
    for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++) {
    echo "<tr>\n";
    for ($j = 1; $j <= $data->sheets[0]['numCols']; $j++) {
    if( $data->sheets[0]['cells'][$i][$j] == "" ) {
    echo "<td>&nbsp;</td>";
    } else {
    echo "<td>".$data->sheets[0]['cells'][$i][$j]."</td>";
    }
    }
    echo "</tr>\n";

    }
    echo "</table>";

    Go For It! :D

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.