直接看代码: while ($row=mysql_fetch_row($result))
{
for ($i=0; $i<mysql_num_fields($result); $i++ )
{
echo '<a href="../products/index.php?pclass=$row[$i]">';//这一行,plass=后面应该怎么写才符合规范?
echo "$row[$i]";
echo '</a>';
}
}谢谢
{
for ($i=0; $i<mysql_num_fields($result); $i++ )
{
echo '<a href="../products/index.php?pclass=$row[$i]">';//这一行,plass=后面应该怎么写才符合规范?
echo "$row[$i]";
echo '</a>';
}
}谢谢
http://www.php.net/manual/zh/language.types.string.php