I want to display the id of a tone from my database, and put it into an automated link
so that every time a record is found from a category its id is printed into a link which is submitted to a different page where the tone is displayed according to the id variable.
eg.
<a href=tone_display.php?id=23>Tones Name</a>
<a href=tone_display.php?id=46>Tones Name</a>
Ofcourse the ids wont be in order 1 2 3 4 5 etc as different tones will be placed inside the database at different times
using/editing this code
$sql = "select * from tones where type = '$cat' AND artist LIKE '$letter%'";
// Request Tone
$result = mysql_query($sql);
if (!$result) {
echo("<P>Error performing query: " .
mysql_error() . "</P>");
exit(); }
// Display Tone Link
while ( $row = mysql_fetch_array($result) ) {
echo ("<P><font size=1 face=Verdana color=#000080><b>");
echo "<a href=tone_display.php?id=";
echo ("".$row["id"]."");
echo ("></a></P>");
}
how can i make it work because at the moment nothing shows up
Thanks In Advance 🙂