html - A link refer of data from PHP -


i have create list can show account.

here php,i have show login account name.and how href file .

example account name call "admin",and show on table .now need create link on "admin" word.so when kick "admin" , can see profile in new page. , how ?

(((((echo account 's php)))))

$con1 = mysql_connect("127.0.0.1","root","password");    mysql_select_db("babytradeapps");    $sql1 = "select loginid , permission           loginacc permission = 2 ";     $results = mysql_query($sql1,$con1);    echo "<table border=5 cellpadding=10>";    echo "<tr><th>members</th></tr>";    while($row = mysql_fetch_array($results)) {       echo "<td>$row[0]</td>";    }    echo "</table>"; 

put link in echo statement:

echo "<td><a href='profile.php?id={$row['loginid']}'>$row['loginid']}</a></td>; 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -