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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.