Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
please help senior php coders
02-09-2014, 01:25 AM
Post: #1
please help senior php coders
help me correct it..........

syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u807470965/public_html/forum/topics.php on line 131

{ header(''); }
{ $user=$_SESSION["user"];
$banned=user_info($user, banned);
if($banned==1) { header("");
exit(); }
else {
updateonline(); } }
{ header('location: index.php');
exit(); }
$num=get_row("SELECT * FROM b_forums WHERE id=$id");
{ header('');
exit(); }
$query=mysql_fetch_array(mysql_query("SELECT * FROM b_forums WHERE id=$id"));
echo"<title>$config->title &raquo; Forum | $name</title>";
echo"<div class='body_width'>";
echo"<div class='breadcrumb'><a href='../member/index.php'>Home</a> &raquo; <a href='index.php'>Forums</a></div><br>";


<div class='public_message'><div class='success'></div></div>


<div style='margin-top: 5px;' class='grid3'>

echo"<div class='grid3 middle'>
<div class='b_head'>Forum &raquo; $name</div>";
{ $id=$_GET["id"];
if(empty($title)|| strlen($title)<4)
$errors[]="Your title is too short";
$errors[]="Your content is too short";
$query=mysql_query("INSERT INTO b_topics SET poster='$user', lastpostdate='$date', lastposter='$user', subject='$title', message='$message', date='$date', forumid=$id");
$msg="An error occured";
$msg="Topic was successfully created";
header("location: index.php?msg=$msg");
foreach($errors as $error)
if($string!==" "){
echo"<div class='msg'>$string</div>";
echo"<div class='msg'><br><span class='style1'><strong>Warning</strong></span><p><span class='style1'><b>.</b> </span>Do not Create Topic in the Wrong Section & be careful on the Kind of Topic you Create to Avoid Your Account Dismissal!<br>

<!--span class='style1'><b>.</b></span> Never Ask any Member to Call You or Request before you Post, Else your Account might be Suspended.</div-->";
echo"<form action='#' method='post'><center><ul><li><center>Titlte<br/><input type='text' name='title'></li><li>Content<br/><textarea name='message'></textarea></li><li><input type='submit' name='submit' class='button' value='Create'></li></ul></center><br/><div class='link_button'><a href='index.php'>Go Back</a></div>";
//echo"hello this is your id $id";

if(isset($_GET["currentpage"]) && is_numeric($_GET["currentpage"])) { $currentpage=(int)$_GET["currentpage"]; } else { $currentpage=1; } $offset=($currentpage-1)*$rowsperpage;
$numrows=mysql_num_rows(mysql_query("SELECT * FROM b_topics WHERE forumid=$id"));
if($currentpage>$totalpages) { $currentpage=$totalpages; }
if($currentpage<1) {$currentpage=1; } $query2=mysql_query("SELECT * FROM b_topics WHERE forumid='$id' ORDER BY lastpostdate DESC LIMIT $offset, $rowsperpage");
$num=mysql_num_rows($query2); if($num==0)
{ echo"<div class='msg'>No topics yet</div>"; }
else { echo"<br><div class='center'><span class='style18'></span></div><br><br>
while($info=mysql_fetch_array($query2)) { $title=cleanvalues2($info["subject"]);
$id2=cleanvalues2($info["id"]); $author=cleanvalues2($info["poster"]);
$aid=user_info($author, userID);
$bid=user_info($lastposter, userID);
$date=date(' G:i D, d M Y', $date); if(empty($lastposter))
{ $lastposter="---"; $lastpostdate=" "; }
else { $lastposter="last commented by <a href='../profile.php?uid=$bid'>$lastposter </a>&nbsp;"; $[email protected]('G:i D, d M Y', $lastpostdate); }
$query=mysql_fetch_array(mysql_query("SELECT * FROM b_forums WHERE id=$forumid"));
echo "<div class='forum-list'><ul><li><a href=showtopic.php?id=$id2><font color=\"blue\"
style=\"text-transform:uppercase; font-weightnerdold\">$title</font></a><b><div sam=\"background-color=\"blue\">
<a href='../profile.php?uid=$aid'>$author </a> </div>&nbsp; $date <br/><div sam=\"background-color=\"blue\"> $lastposter </div>\"; $lastpostdate</li><br></ul></b></div>
} if($currentpage>1) { echo \" <a href='$self?id=$id&currentpage=1'>[<b>First</b>]</a>\ "; $prevpage=$currentpage-1;
echo' <a href=\'$self?id=$id&currentpage=$prevpage\'>[<b>Prev</b>]</a> '; } for($x=($currentpage-$range); $x<(($currentpage+$range)+1); $x++) { if(($x>0) &&($x<=$totalpages)) { if($x==$currentpage)
{ echo" [<font color='red'>$x</font>] ";
} else { echo' <a href=\'$self?id=$id&currentpage=$x\'>[<b>$x</b>]</a> '; } } } if($currentpage!=$totalpages) { $nextpage=$currentpage+1; echo' <a href=\'$self?id=$id&currentpage=$nextpage\'>[<b>Next</b>]</a> '; echo' <a href=\'$self?id=$id&currentpage=$totalpages\'>[<b>Last</b>]</a> '; } } echo'<br/><br><div class='link_button'><a href=?action=add&id=$id>Create new Thread</a></div><div class='gap'></div>';
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-09-2014, 05:56 PM
Post: #2
RE: please help senior php coders
give me that file.

Best Ad Network - Daily Payment - SEO Friendly
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
03-12-2016, 02:09 PM
Post: #3
What hosting to choose?
Мне друг посоветовал взять для моего сайта вдс. Не дорого и побольше оперативы, минимум от 2GB. Чтобы принимали оплату карточкой. Что можите посоветовать? Остановил свой выбор на:
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
12-22-2016, 01:37 PM
Post: #4
RE: please help senior php coders
it is typically novices which publish badly formatted code, no longer to mention the reality that yahoo offers custom assignment help no formatting tools for code, making Yahoo answers a horrible region to get programming help.also, observe that many programmers that submit horrific code are from eastern international locations. The theory in the back of that is the great of the schooling system in the ones countries.
Find all posts by this user
Like Post Quote this message in a reply
02-17-2017, 08:02 AM
Post: #5
RE: please help senior php coders
it's far generally novices which submit badly formatted code, not to say the truth that yahoo offers custom project assist no formatting tools for code, making Yahoo solutions a terrible location to get programming help.also, look at that many programmers that put up horrific code are from eastern worldwide locations. The principle within the lower back of this is the wonderful of the training system inside the ones international locations. assignment writing services UK
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)