I know i have a problem in line 145, just dont know how to fix it
$mailto = $row["email_address"] ? '<a href="mailto: {$row["email_address"]}" target=\"_blank\"> {$row["email_address"]} </a>';
<?
$DBhost = "XXX";
$DBuser = "XXX";
$DBpass = "XXX";
$DBName = "XXX";
$table = "XXX";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$sql = "SELECT *
FROM XXX
ORDER BY name
DESC LIMIT 0,1000";
$result = mysql_query($sql);
if (!$result) {
echo "Could not successfully run query ($sql) from DB: " . mysql_error();
exit;
}
if (mysql_num_rows($result) == 0) {
echo "No rows found, nothing to print so am exiting";
exit;
}
// While a row of data exists, put that row in $row as an associative array
// Note: If you're expecting just one row, no need to use a loop
// Note: If you put extract($row); inside the following loop, you'll
// then create $userid, $fullname, and $userstatus
echo "<TABLE cellspacing=\"4\" cellpadding=\"5\">";
while ($row = mysql_fetch_assoc($result)) {
$image = $row["image"] ? '<img src="' . $row["image"] . '">' : '';
$mailto = $row["email_address"] ? '<a href="mailto: {$row["email_address"]}" target=\"_blank\"> {$row["email_address"]} </a>';
echo "<TR>";
echo $row["name"];
echo "<br/>";
echo "<TD align=\"left\" valign=\"top\" <span class=\"style3\">"$mailto;
echo "<br/>";
echo "<align=\"left\" valign=\"top\" <span class=\"style3\">".$row["body"]."</TD>";
echo "</TR>";
}
echo "</TABLE>";
mysql_free_result($result);
?>