Is there any way to print the actual query that mysqli->execute() makes?

后端 未结 4 1715
暖寄归人
暖寄归人 2020-12-04 01:41

I have a complex query that gets executed like this:

if ($stmt = $dbi->prepare($pt_query)) {   
        $stmt->bind_param(\'ssssssssi\', $snome,$scogno         


        
4条回答
  •  隐瞒了意图╮
    2020-12-04 02:18

    Based on the PHP mysql website there is no actual way of doing it. But you may try this function as it gives you errors in your query.

提交回复
热议问题