gpt4 book ai didi

PHP-我在这段代码上遇到错误。错误显示,警告 : mysqli_query() expects parameter 1 to be mysqli, null 给出

转载 作者:行者123 更新时间:2023-11-29 12:23:24 25 4
gpt4 key购买 nike

$q = "SELECT CONCAT" (lname ', ', fname) AS name
DATE_FORMAT(registration_date, %M %d, %Y) AS regdat FROM users
ORDER BY registration_date DESC;
$result = @mysqli_query ($dbcon $q);

最佳答案

引号中存在错误:

$q = "SELECT CONCAT(lname, ', ', fname) AS name,
DATE_FORMAT(registration_date, '%M %d, %Y') AS regdat
FROM users
ORDER BY registration_date DESC";
$result = mysqli_query ($dbcon, $q);

关于PHP-我在这段代码上遇到错误。错误显示,警告 : mysqli_query() expects parameter 1 to be mysqli, null 给出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28702677/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com