Forum Moderators: coopster
i want to query and have listed in a table with 3 columns, the name, cwebsite and email address
i want the ablility to click on the website and be able to go to that site
i also want to click the email address and be able to send that name an email address if an email address was given
here is what i have for my website info and its not working, i think its a formatting issue but i'm not sure
Print "<td><center><font size= 2><a href=$info['cwebsite']>".$info['cwebsite']."</A></font></center></td>";
this is the error i'm getting
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
thanks in advance for the help
here is my table result info how i have it now and yes its within php open and close tags already
<?php
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<td><center><font size= 2>".$info['cname'] . "</font></center></td>";
Print "<td><center><font size= 2>".$info['cwebsite']."</A></font></center></td>";
Print "<td><center><font size= 2>".$info['cemail'] . "</font></center></td>";
Print "</tr>";
}
?>
i want to be able to click on website and go to the website and click on email and send email to the address
thanks
Spammers will harvest them within days, and you'll very soon be receiving a deluge of junk.
You especially don't want to be publishing other people's email addresses without their permission.
Print "<td><center><font size= 2><a href=$info['cwebsite']>".$info['cwebsite']."</A></font></center></td>";
Print "<td><center><font size= 2><a href=[b]{[/b]$info['cwebsite'][b]}[/b]>".
$info['cwebsite'] // this is fine as you have broken out of print
."</A></font></center></td>";
Also you are starting your link with a, but ending it with A. You may want to choose upper or lowercase and stick to one or the other. Lowercase is xhtml compatible, so may be better in the long run. Not that this should make any difference to your error though.
[edited by: PHP_Chimp at 9:18 pm (utc) on June 8, 2008]