2 Replies - 1088 Views - Last Post: 25 February 2013 - 07:22 AM Rate Topic: -----

#1 Darkvortex  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 19-February 13

Members page with profile page url.

Posted 25 February 2013 - 02:08 AM

Hello friends i am trying to a memberlist page with profile page.but its not working perfectly. Here is the script -
<?php include 'config.php'; 
$sql = mysql_query('select id, username from users order by id'); while($row = mysql_fetch_array($sql))  
{  ?>
<?php echo ".$row['id'];." ?><br />
<a href="view_profile.php?id=<?php echo ".$row['id'];." ?>"><?php echo ".$row['username'];." ?></a>

i use this script but its showing all users with on link.

Is This A Good Question/Topic? 0
  • +

Replies To: Members page with profile page url.

#2 vectorialpx  Icon User is offline

  • New D.I.C Head

Reputation: 7
  • View blog
  • Posts: 28
  • Joined: 16-July 12

Re: Members page with profile page url.

Posted 25 February 2013 - 06:56 AM

At
<a href="view_profile.php?id=<?php echo ".$row['id'];." ?>">
You have a ; that should not be there.

<a href="view_profile.php?id=<?php echo ".$row['id']." ?>">
Was This Post Helpful? 0
  • +
  • -

#3 Darkvortex  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 19-February 13

Re: Members page with profile page url.

Posted 25 February 2013 - 07:22 AM

Oh thanks for correct syntax.i will remove the ; syntax.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1