Questions tagged "error"
6 questions
Active Filters:
Tag: error ×How to fix "mysqli_query() expects parameter 2 to be string" error
I'm getting this error when trying to execute a database query: "mysqliquery() expects parameter 2 to be string" Here's my code: What's wrong with...
1 Answer
363 Views
24 Votes
How to fix "Call to undefined method bind_param()" error
I'm getting this error in my PHP application: "Uncaught Error: Call to a member function bindparam()" This happens when I try to use prepared...
1 Answer
347 Views
20 Votes
Content Security Policy error with Google AdSense frames
I'm getting this error in my browser console when loading Google AdSense ads: "Refused to frame 'https://pagead2.googlesyndication.com/' because it...
1 Answer
251 Views
15 Votes
How to fix PHPMailer SMTP authentication errors?
I'm trying to send emails using PHPMailer but I keep getting SMTP authentication errors like: "SMTP Error: Could not authenticate" "SMTP Error: Could...
1 Answer
322 Views
28 Votes
How to fix "Trying to get property 'num_rows' of non-object" error?
I'm getting this error: "Trying to get property 'numrows' of nonobject" Here's my code: What's causing this error and how can I fix
1 Answer
274 Views
25 Votes
How to send HTTP response codes in PHP API?
I'm building a PHP API and need to send proper HTTP response codes like 200 OK, 404 Not Found, or 500 Internal Server Error. What's the correct way...
1 Answer
269 Views
18 Votes