Jump to content

How to create a link


zed420

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.