Jump to content

Unexpectec T_echo?


darkfreaks

Recommended Posts

if anyone can figure it out let me know ???

<?php
define('QUADODO_IN_SYSTEM', true);
require_once('includes/header2.php')
//this line is the one erroring
echo "<h1>COVENS</h1> 
<a href='../coven/creatcoven.php'>Click here to create your own coven</a>
<p>
<table width=\"80%\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"20%\">Name</td>
<td width=\"20%\">Started by</td>
<td width=\"20%\">Topics</td>
<td width=\"20%\">Date</td>
</tr>";
include ('config.php');
$query=strip_tags_attributes($query);
$query=trim(mysql_real_escape_string($query));
$query = "SELECT * FROM vc_coven ORDER BY `id` DESC LIMIT 0,100";
$result = mysql_query($query);

$num=mysql_num_rows($result);

mysql_close();

$i=0;
for ($i = 0; $i < $num; $i++) {

$id = mysql_result($result,$i,"id");
$name = mysql_result($result,$i,"name");
$date = mysql_result($result,$i,"date");
$username = mysql_result($result,$i,"startedby");

echo "<tr valign=\"top\">
<td width=\"20%\">
<a href=\"../covens/$name\">$name</a>
</td>
<td width=\"20%\">
<a href='../profile/$username'>$username</a>
</td>";

include ('config.php');
$query3=trim(mysql_real_escape_string($query3));
$query=strip_tags_attributes($query);
$query3 = "SELECT * FROM vc_coventopics WHERE covid='$id' ORDER BY `catid`";
$result3 = mysql_query($query3);

$count=mysql_num_rows($result3);

echo "<td>$count Topic(s)</td>";

echo "<td>
$date
</td>
</tr>
";
};

echo "</table>";

require_once('includes/footer.php');
?>

Link to comment
https://forums.phpfreaks.com/topic/90550-unexpectec-t_echo/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.