当我想对此进行辩解时,出现错误:
注意:由于company.username =,数组到字符串的转换 '$ user'
如果我将$ user更改为用户名,则代码可以正常工作,这$user
有什么问题。顺便说一句。 $user
,是分配给变量$ user的登录用户
$stid = oci_parse($conn, "select users.no_user, users.post_user from users
inner join best_users on (best_users.no_user = users.no_user)
where exists( select username from company where
best_users.username = company.username and company.username = '$user')");
oci_execute($stid);
while (($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS))!= false){
echo $row['no_user'] . " " . $row['post_user'] . "$<br>\n";
}