Parse error: parse error in C:\wamp\www\logs\pages\members.php on line 16


Posted on 16th Feb 2014 07:03 pm by admin

I dont see the problem with this, I always get Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
, what did I do wrong??
<?php
$sql = "SELECT * FROM members ORDER BY id DESC LIMIT 0, 30";
$query = mysq_query($sql);

while($row=mysql_fetch_assoc($query)) {
$member_id = row['id']; // Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
$member_firstname = row['firstname'];
$member_lastname = row['lastname'];
$member_position = row['position'];

echo ' <div class="row">
<div class="cell"><span class="link"><a href="' . echo HOME_URL . "?p=profile&u=" . $member_id; . '"><img src="' . echo HOME_URL . "pages/img/icons/info_white_16x16.png"; . '" alt="' . $member_username . ' Info" title="View ' . $member_username . ' info" /></a></span> ' . $member_firstname . '</div>
<div class="cell">' . $member_lastname . '</div>
<div class="cell">' . $member_position . '</div>
<div class="cell"><div class="member-num">#' . $member_id . '</div></div>
</div>';
}
?>

No comments posted yet

Your Answer:

Login to answer
263 Like 24 Dislike
Previous forums Next forums
Other forums

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Call db table from any PHP file
Hi,

I want to be able to call a database table that will be setup in another file called init

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Multiple Dropdown Selections
I have a form that let's a user insert a page with the ability to select categories. I want them to

get url?
how do i get the url of the page i'm currently on, on my website.. i think its get header.. how do i

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash