Hi. I had a page that generates links with a variable associated in this way: if I select a printer I generate a page with all stuff related with the printer: toner, paper, etc,etc. I assigned to both, printer and stuff, codes. But after generating the links when I call the page associated with the link and the variable, the variable seems not be "created". Code follows to better comprehension.
$codd=device code
$cods=stuff code
ref=stuff reference
unit=stuff in stock
$result = mysql_query("SELECT * FROM stuff WHERE codd='$codd'",$db);
while ($myrow = mysql_fetch_array($result)) {
printf("<table border width=%s>\n",$wid);
printf("<tr>\n");
printf("<td><a href=\"deliver.php?cods=%s\"><b>%s</b></a> Stock: %s</td>\n",$myrow["codc"],$myrow["ref"],$myrow["unit"]);
printf("</tr>\n");
printf("</table>\n");
}
As you can see, i generate links dinamically. I suspect that the variable don't get the value because i use the string "cods" for multiple links. Is this assuption correct? If not, what could cause the variable being empty? Thanks in advance