Your problem is one of "de-referencing" a variable. Help on this can also be found at:
http://www.phpbuilder.com/manual/language.variables.variable.php
What you want to do is create a varable to hold a value that corresponds to another variable name; ie:
$varholder = 'myVariable';
when you have a variable named "$myVariable" whose contents are, say, "Hello World".
Then you want to say
print $varholder;
but you really want it to print "Hello World" and not "myVariable".
To do this, you have to "de-reference" the variable correctly by using:
print ${$varHolder};
To make you code work:
=============================
<?php
$varbase = 'id';
$varext = 1;
$varvar = $varbase . $varext;
while (is_set(${$varvar})) {
$sql = "SELECT * FROM classicdye WHERE id = ${$varvar}";
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
$id1 = $myrow["id"];
$name1 = $myrow["name"];
$color1 = $myrow["color"];
$ci1 = $myrow["ci"];
$quantity1 = $myrow["quantity"];
$price1 = $myrow["price"];
$srchcolor1 = $myrow["srchcolor"];
$type1 = $myrow["type"];
print("<tr><td>$name1</td><td>$srchcolor1</td><td>$type1</td></tr>");
$varext++;
$varvar = $varbase . $varext;
} // while loop
?>
HTH
-- Rich Rijnders
-- Irvine, CA US