PDA

View Full Version : table in php


Digger
10-18-2001, 04:19 PM
Hello:
im using a php file which prints certain data.
im sending the php codes in the post.
i need to print the data in a table.
i tried using the <table tag in php but it didnt work.
can someone help me in php and show me how to make tables in php.
Thanks
Digger

// output the data
if(empty($fsize)) {
$fsize="-1";
**
for ($i=0;$i<$resultcount;$i++) {
if(strpos($urlarray[$i],"findwhat")!=0) {
$term=urldecode($term);$furl=$urlarray[$i];

$fterm=urlencode($term);
$bid=$bidpricearray[$i];


print "<a href='$furl' target='_blank'>";
print "<font face='verdana,sans-serif' size='3' color='black'>";
print "$titlearray[$i]";
print "</font></a><br>";
print "<a href='$furl' target='_blank'>";
print "<font face='verdana,sans-serif' size='2'>";
print "$descarray[$i]";
print "</font></a><br>";
print "<br>";
** // end check its output
** // end for

Chet
10-19-2001, 10:57 AM
If I am not mistaken the lines that you have beginning with "print" need to begin with "echo"
(Not sure if that matters or not but I never seen "print" before myself)

-----------------------------------------------------------------------------

echo "<a href='$furl' target='_blank'>";
echo "<font face='verdana,sans-serif' size='3' color='black'>";
echo "$titlearray[$i]";
echo "</font></a><br>";
echo "<a href='$furl' target='_blank'>";
echo "<font face='verdana,sans-serif' size='2'>";
echo "$descarray[$i]";
echo "</font></a><br>";
echo "<br>";

-----------------------------------------------------------------------------

Click Here!