Jump to content

Recommended Posts

Hi All

I wonder if you can help me.  I'm trying to make the table results as a link to a different page but I can't make head or tail of it. Here's my code, I 'm trying to make [itemDes] as a link to a different page, how do I do it  ????

 

function ItemDisplay (){ 

$query = "SELECT * FROM itemtb  ORDER BY id";

$result = mysql_query($query)

or die ("Couldn't execute query for collecting your data.");

 

while ($row = mysql_fetch_array($result))  {

    extract($row);

echo ("<tr align=center>\n");

$a = $ItemType.$id; 

echo "<td>$a</td>";

echo "<td align=center>$row[itemName]</td>\n";

echo "<td align=center>$row[itemDes]</td>\n";

echo "<td align=center>$row[itemPrice]</td>\n";

echo "<td align=center>$row[date]</td>";

echo "</tr>";

}

echo "</table>\n";

echo "</form><br>\n";

}

 

Link to comment
https://forums.phpfreaks.com/topic/102158-how-to-create-a-link/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.