Forum Moderators: coopster

Message Too Old, No Replies

Parse error: syntax error, unexpected T STRING in /home. line 37

Parse error: syntax error, unexpected T_STRING in /home...line 37

         

friendzout

10:08 pm on Jul 31, 2011 (gmt 0)

10+ Year Member



<?php
session_start(); // Must start session first thing
/*
Created By Adam Khoury @ www.flashbuilding.com
-----------------------June 20, 2008-----------------------
*/
// See if they are a logged in member by checking Session data
$toplinks = "";
if (isset($_SESSION['id'])) {
// Put stored session variables into local php variable
$userid = $_SESSION['id'];
$username = $_SESSION['username'];
$toplinks = '<a href="member_profile.php?id=' . $userid . '">' . $username . '</a> &bull;
<a href="member_account.php">Account</a> &bull;
<a href="logout.php">Log Out</a>';
} else {
$toplinks = '<a href="join_form.php">Register</a> &bull; <a href="login.php">Login</a>';
}
//include_once "connect_to_mysql.php";
////////////////////////////////////////// GET THE NEWEST MEMBERS WITH PICS ///////////////////////////////////////////////////////////
$MemberDisplayList = '<table border="0" align="center" cellpadding="3">
<tr> ';
$i = "1";
$sql = mysql_query('SELECT id, firstname FROM members WHERE `emailactivated`=\'1\'; )");
while($row = mysql_fetch_array($sql)){
$id = $row["id"];
$firstname = $row["firstname"];
$firstname = substr($firstname, 0, 10);
// Set condition to see if they are my favorite kind of peeps with pics
$check_pic = "members/$id/image01.jpg";

if ($i < 13)) {
if (file_exists($check_pic)) {

$user_pic = "<img src=\"http://www.floridamusclemag.com/members/$id/pic01.jpg\" width=\"64px\" border=\"0\" />";

$MemberDisplayList .= ' <td style="height:64px; overflow:hidden;">'<a href="http://www.floridamusclemag.com/member_profile.php?id=' . $id . '">' . $user_pic . '</a><div><td>';
$i++;

//} // close if fav peeps check
// close while loop

$MemberDisplayList .= ' </tr>
</table> ';
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
?>

g1smd

10:17 pm on Jul 31, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Any piece of code created in 2008 is likely to be many versions old.

Do check there isn't a more recent version before proceeding further.

That said, in ...
overflow:hidden;">'<a href=
... the single quote is redundant.

friendzout

10:26 pm on Jul 31, 2011 (gmt 0)

10+ Year Member



will do! thanks a million