728x90
5 3 | I'm not sure what's going wrong here. I was just following a tutorial online and these errors popped up. I'm getting the following errors Error
Code
| |||
10 | First, you declared $db outside the function. If you want to use it inside the function, you should put this at the begining of your function code:
And I guess, when you wrote:
what you really wanted was:
| ||||||||||||
|
'WEB > jQuery' 카테고리의 다른 글
jQuery change() Method (0) | 2018.01.14 |
---|---|
PHP array_push (0) | 2018.01.14 |
Fatal error: Call to a member function fetch_array() on a non-object (0) | 2018.01.14 |
달력 - 날짜입력기(Date Picker) (0) | 2018.01.14 |
javascript comma and uncomma (0) | 2018.01.14 |
$db
variable is inside a function and thus out of scope from the code that defines it. Declare it global, or better, pass it as an argument to your function. See the PHP manual on scope – user1864610 Jun 23 '15 at 2:22mysqli_result()
is not a function. I'm really not clear what that piece of code is trying to do, butmysqli_result()
doesn't exist in PHP. – user1864610 Jun 23 '15 at 2:41