$sql = mysql_query("SELECT id, username, firstname,lastname, country, trade FROM myMembers WHERE email_activated='1' ORDER BY id ASC");
$sql2 = mysql_query("SELECT id, username, firstname,lastname, country, trade FROM mymembers WHERE email_activated='1' ORDER BY id DESC $limit");
$paginationDisplay = "";
if ($lastPage != "1"){
$paginationDisplay .= 'Page <strong>' . $pn . '</strong> of ' . $lastPage. '<img src="images/clearImage.gif" width="48" height="1" alt="Spacer" />';
if ($pn != 1) {
$previous = $pn - 1;
$paginationDisplay .= ' <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $previous . '"> Back</a> ';
}
$paginationDisplay .= '<span class="paginationNumbers">' . $centerPages . '</span>';
if ($pn != $lastPage) {
$nextPage = $pn + 1;
$paginationDisplay .= ' <a href="' . $_SERVER['PHP_SELF'] . '?pn=' .$nextPage . '"> Next</a> ';} }
$outputList = '';
while($row = mysql_fetch_array($sql2)) { $id = $row["id"];
$username = $row["username"];
$firstname = $row["firstname"];
$lastname = $row["lastname"];
$country = $row["country"];
$trade=$row["trade"];
$check_pic = "members/$id/image01.jpg";
$default_pic = "members/0/image02.jpg";
if (file_exists($check_pic)) {
$user_pic = "<img src="$check_pic" width="150px"; height="150px"; />"; } else {
$user_pic = "<img src="$default_pic" width="150px" height="150px"; />"; // forces default picture to be 120px wide and no more}
$name=$firstname.' '.$lastname;
$outputList .= '<div id="content" class="clearfix"><section id="left"><div id="userStats class="clearfix"><div class="pic">
<a href="profile.php?id=' . $id . '" target="_self">' . $user_pic . '</a></div><div class="data">
<h1><a href="profile.php?id=' . $id . '" target="_self">' . $name. '</a></h1>
<h3>From: ' . $country .'<h3>
<h3>Trade: ' . $trade .'<h3>
<h3>Username: ' . $username .'</h3>
<div class="sep"></div>
<ul class="numbers clearfix">
<li><a href="profile.php?id=' . $id . '" target="_self">Full Profile</a></li>
<li><a href="info.php?id=' . $id . '" target="_self">About</a></li>
<li><a href="blab.php?id=' . $id . '" target="_self">WhiteBoard</a></li>
</ul></div></div></section></div><br>';}
This code works in the localhost but is not working in the deployed server.
This is the page user is directed after the login. The error on the server is this:
Parse error: syntax error, unexpected T_VARIABLE in /home/u576778821/public_html/interact/index.php on line 119
where the 119 line is this
$user_pic = "<img src="$check_pic" width="150px"; height="150px"; />";
And for now I am using free azuka.biz server.
watch the quotes it should be
or
Edit,
watch semicolons after width and height. They shouldnt be there