这是代码示例,请在此处添加以解决 $name 只是最后一种蔬菜 :((( 我需要所有这些都在链接中:
<?php
$mike = mysql_query('SELECT vegetables FROM nature');
while($subfile = mysql_fetch_assoc($mike))
{
$jack = $subfile['vegetables'];
$name = $jack;
}
//while ends
echo ('<span><a href="index.php?='.$name.'">Vegetables</a>
|
Fruits
|
Suggestions </span>');
?>