【发布时间】:2015-04-30 14:32:43
【问题描述】:
所以我在数据库中为我的游戏高分系统制作了这样的表格。
我想获得总行数。 (在上表中,我预计结果为 11)
所以我写在 .php 之类的,
$sql = "SELECT COUNT(*) FROM $table";
$result = mysql_query($sql) or Die('Query failed: ' . mysql_error());
$info = "";
while($found = mysql_fetch_array($result)){
$info = $found;
}
echo 'Count'.$info; exit;
在统一中,我收到上面的回显文本并提取数字,
if (hs.text.Contains("Count"))
{
string result = Regex.Replace(hs.text, @"\D", "");
totalHighNum = Int32.Parse(result);
Debug.Log("total highscore num is " + result);
}
但这不起作用。 打印的回显文本说,'CountArray'
我应该如何复习?谢谢。
【问题讨论】: