I w*_*ce. 0 php sql loops while-loop
这个代码块是在别人写的一个脚本中找到的,我被要求编辑.它似乎没有做任何事情......我想知道为什么它在那里,如果我删除它,如果世界某处的东西会出现严重错误..
我错过了什么吗?
//begin mystery code - i have no idea what this chunk of code is doing..
$result = mysql_query("SHOW COLUMNS FROM ".$table."");
$i = 0;
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
$i++;
}
}
//end mystery code
Run Code Online (Sandbox Code Playgroud)
$result 没有在其他地方引用..