如何将sql结果从一个变量复制到其他没有数组的,并在PHP中预先执行。$query="Select * from table";$res2=$res1; // I need somethink like this,simply, like in other languagesecho $row['Id'];
function device_id_exists($device_id) { $query = mysql_query("SELECT COUNT(`numbers`) FROM `devicenumbers` WHERE `numbers` = '$numbers'");如果我运行这个查询SELECT COUNT(numbers) FROMdevicenumb