$query = "SELECT username,userid FROM user WHERE username = 'admin' ";
$result=$conn->store_result();
$result1=$conn->store_result();
我可以将相同的结果存储在两个不同的变量中吗? $ result和$ result 1?
答案 0 :(得分:2)
使用此
$query = "SELECT username,userid FROM user WHERE username = 'admin' ";
$result=$conn->store_result();
$result1=$result;