F
Fred
1. is there a way to display php pages with frontpage?
(without publishing)?
2.can someone tell me why i am getting a parse error on
this code? i am trying to display the email row as links
with subect lines... i know the error is in that part of
it. thanks!!!
<?php
echo "<TABLE BORDER=\"0\" width=\"100%\">\n";
echo "<TR bgcolor=\"white\"><TD>Last Name</TD><TD>First
Name</TD><TD>Email Address</TD><TD>Year
Graduated</TD></TR>\n";
for($i = 0; $i < $numofrows; $i++) {
$row = mysql_fetch_array($result); //get a row from
our result set
if($i % 2) { //this means if there is a remainder
echo "<TR bgcolor=\"white\">\n";
} else { //if there isn't a remainder we will do the
else
echo "<TR bgcolor=\"#E9E9E9\">\n";
}
echo "<TD>".$row['Last_Name']."</TD><TD>".$row
['First_Name']."</TD><TD>"<a href=\"mailto:".$rows
['Email_Address']."?subject=please email me\">".$rows
['Email_Address']."</a>";</TD><TD>".$row
['Year_Graduated']."</TD>\n";
echo "</TR>\n";
}
//now let's close the table and be done with it
echo "</TABLE>\n";
?>
(without publishing)?
2.can someone tell me why i am getting a parse error on
this code? i am trying to display the email row as links
with subect lines... i know the error is in that part of
it. thanks!!!
<?php
echo "<TABLE BORDER=\"0\" width=\"100%\">\n";
echo "<TR bgcolor=\"white\"><TD>Last Name</TD><TD>First
Name</TD><TD>Email Address</TD><TD>Year
Graduated</TD></TR>\n";
for($i = 0; $i < $numofrows; $i++) {
$row = mysql_fetch_array($result); //get a row from
our result set
if($i % 2) { //this means if there is a remainder
echo "<TR bgcolor=\"white\">\n";
} else { //if there isn't a remainder we will do the
else
echo "<TR bgcolor=\"#E9E9E9\">\n";
}
echo "<TD>".$row['Last_Name']."</TD><TD>".$row
['First_Name']."</TD><TD>"<a href=\"mailto:".$rows
['Email_Address']."?subject=please email me\">".$rows
['Email_Address']."</a>";</TD><TD>".$row
['Year_Graduated']."</TD>\n";
echo "</TR>\n";
}
//now let's close the table and be done with it
echo "</TABLE>\n";
?>