extra "<<" in my php code output why
Posted: Mon Aug 31, 2009 10:52 am
my php code is below
<?php
$url="http://dsebd.org/latest_share_price_all.php";
$abc=file_get_contents($url);
// Example 1
$pieces = explode('tr', $abc);
echo "<table border=\"1\">";
echo "<tr".$pieces[1]; // piece2
echo "<tr".$pieces[2]; // piece1
echo "<tr".$pieces[3]; // piece2
echo "<tr".$pieces[4]; // piece1
echo "<tr".$pieces[5]; // piece2
echo "</table>";
?>
I tried tho split the table. the table is bangladesh stock exchange.
but in the page extra << is printing before table
Why? can anybody help me
<?php
$url="http://dsebd.org/latest_share_price_all.php";
$abc=file_get_contents($url);
// Example 1
$pieces = explode('tr', $abc);
echo "<table border=\"1\">";
echo "<tr".$pieces[1]; // piece2
echo "<tr".$pieces[2]; // piece1
echo "<tr".$pieces[3]; // piece2
echo "<tr".$pieces[4]; // piece1
echo "<tr".$pieces[5]; // piece2
echo "</table>";
?>
I tried tho split the table. the table is bangladesh stock exchange.
but in the page extra << is printing before table
Why? can anybody help me