razzi still cant the solution
Nothing we can do without seeing the code that is failing. But as Weedpacket alluded to, you need to test the result of your mysqli_query()
call, and if it's false then you can use mysqli_error()
to get some information as to what MySQL did not like.