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 8526211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:12:30+00:00 2026-06-11T08:12:30+00:00

Firstly I’m very new to PHP, I’m trying trial and error method to get

  • 0

Firstly I’m very new to PHP, I’m trying trial and error method to get my stuff to work.

Ok basically here is how the following code looks like, please check it out first before you read my question:

http://oi47.tinypic.com/2m4515l.jpg

I’m trying to remove the entire Registered Users table and instead where it says ‘Nickname’ I’d like to HYPERLINK all those names like I did to the registered users, but since I’m going to use a HTML code inside a PHP, it wouldn’t allow me to do that so, so I’m very confused in how abouts I’m going to get this to work… In otherwords I just want to add in the table column ‘Nickname’ and also use the firstname method to know which user’s nick I’ve clicked on. Hope you can help me because I am really confused at this point

echo "<table width='1000' cellpadding='0' cellspacing='5' border='2' align='left'>";  // starting from here



 echo "<tr>


    <td><center><b>RANK</td></center></b><td><b><center>Nickname</td></center></b><td><center><b>Kills</td></center></b><td><center><b>Deaths</td></center></b><td><center><b>Hits</td></center></b><td><center><b>Damage</td></center></b></tr>";
$i = 0;
 while($info = mysql_fetch_array( $data )) 
 { 
 $i++;
 echo "<tr> 
     <td><center><b>".$i."</td></center></b>"."<td><center><b>".$info['Name']."</td></center></b>"."<td><center><b>".$info['Kills']."</td></center></b>"."<td><center><b>".$info['Deaths']."</td></center></b>"."<td><center><b>".$info['Hits']."</td></center></b>"."<td><center><b><font color='#FF0000'>".$info['Damage']."</font></td></center></b></tr>"; 
 } 
 echo "</table>";

 $data2 = mysql_query("SELECT * FROM pProfile") 
 or die("Can't connect (TABLE ERROR 2) : ".mysql_error());


 echo "<table width='270' cellpadding='0' cellspacing='5' border='2' >";

 echo "<tr><td><b><center>.Registered Users.</td></center></b></tr>";
  while($info = mysql_fetch_array( $data2 )) 
 { 
 $i++;

    ?> 
 <tr><td><b><center><a href="usersProfile.php?firstname=<?= $info['Name'] ?>"><font color="#CCFF00"><?= $info['Name'] ?></font></a></td></center></font></b></tr>
<?php 
  • 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-11T08:12:32+00:00Added an answer on June 11, 2026 at 8:12 am

    Change your aprox 8th line, which is this:

    <td><center><b>".$i."</td></center></b>"."<td><center><b>".$info['Name']."</td></center></b>"."<td><center><b>".$info['Kills']."</td></center></b>"."<td><center><b>".$info['Deaths']."</td></center></b>"."<td><center><b>".$info['Hits']."</td></center></b>"."<td><center><b><font color='#FF0000'>".$info['Damage']."</font></td></center></b></tr>";
    

    for this one:

    <td><center><b>".$i."</td></center></b>"."<td><center><b><a href=\"usersProfile.php?firstname=".$info['Name']."\"><font color=\"#CCFF00\">".$info['Name']."</font></a></td></center></b>"."<td><center><b>".$info['Kills']."</td></center></b>"."<td><center><b>".$info['Deaths']."</td></center></b>"."<td><center><b>".$info['Hits']."</td></center></b>"."<td><center><b><font color='#FF0000'>".$info['Damage']."</font></td></center></b></tr>";
    

    also as you want to remove the ‘registered users’ table remember to remove all code including and below this line:

    $data2 = mysql_query("SELECT * FROM pProfile")
    

    Of course I have to say that PHP code is very poorly written 🙁

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

Sidebar

Related Questions

Firstly some background,.. IVe started a new job as PHP developer with a company
Firstly, this is a homework assignment, and I am very new to programming in
Firstly anyone else trying to get onto forum.hibernate.org. I have been trying for a
Firstly, let me just say that I'm very new to JSR-170 and Jackrabbit/Lucene in
Firstly i have created a sequence in oracle in perl script.I get a error
Firstly here is my PHP CODE if(!isset($_POST['selection'])){ $missing['selection'] = $required['selection']; } if(empty($missing)) { post2session();
Firstly to show you what I am trying to achieve in the view, a
Firstly, the bash script works fine when I call it outside of ant. Here
Firstly, sorry about the question title, it may not be very descriptive for my
Firstly, I am new to programming. I am currently having a website with 2

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.