Warning: mysqli_query() expects parameter 2 to be string, object given in

后端 未结 2 708
借酒劲吻你
借酒劲吻你 2020-12-07 05:18

Good morning!

I\'m new in PHP. i\'m trying to make work this scrpt but is showing me this problem. It\'s a forma that modifies some records in a mysql database. The

2条回答
  •  隐瞒了意图╮
    2020-12-07 05:22

    Read the mysqli reference and learn from the error given

    your error is that mysqli_query expects seconnd parameter to be a string but you are not giving a string variable as the argument.

    mysqli_query($con,$query) $query is string and $con is object.

    Your solution is to make $muestra to be a string.

    $muestra="SELECT * FROM clientes C INNER JOIN producto P ON C.serial  = P.serial WHERE P.serial = $_GET[serial]";
    

提交回复
热议问题