Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8596245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:37:49+00:00 2026-06-12T00:37:49+00:00

$sql = mysql_query(SELECT id, username, firstname,lastname, country, trade FROM myMembers WHERE email_activated=’1′ ORDER BY

  • 0
$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 .=  '&nbsp;  <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $previous . '"> Back</a> ';
} 
$paginationDisplay .= '<span class="paginationNumbers">' . $centerPages . '</span>';
if ($pn != $lastPage) {
$nextPage = $pn + 1;
$paginationDisplay .=  '&nbsp;  <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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:37:50+00:00Added an answer on June 12, 2026 at 12:37 am

    watch the quotes it should be

    $user_pic = "<img src=\"$check_pic\" width=\"150px\" height=\"150px\"  />";
    

    or

    $user_pic = "<img src='".$check_pic."' width='150px' height='150px'  />";
    

    Edit,

    watch semicolons after width and height. They shouldnt be there

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the code: <?php mysqlLogin(); $username = $_COOKIE['username']; $sql = mysql_query(SELECT username FROM `users`
I have the following SQL statement: mysql_query(SELECT * FROM `friends` WHERE friend1='$username' OR friend2='$username'
<?php $id = intval($_GET['id']); $sql = mysql_query(SELECT username FROM users WHERE id = $id);
Are they less vulnerable to SQL injection than doing stuff like mysql_query(SELECT important_data FROM
I written a query in my sql like this: select * from table_name order
<?php $results = mysql_query(SELECT * FROM .TBL_SUB_RESULTS. WHERE user_submitted != '$_SESSION[username]' AND home_user =
This is my SQL query: select name,description from wp_widget_custom where name in ('hemel-hempstead','maidenhead', 'guildford','bromley','east-london','hertfordshire','billericay','surrey')
My sql query is as follows IF @StatusId = 10 BEGIN SELECT * FROM
I really can't understand why this statement is wrong $uname=$_POST['username']; $pass=$_POST['pass']; $str=select * from
I am attempting to run a SQL query like this: $sql = mysql_query(select *

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.