Timeline for Undefined variable: user_id in get_user_meta
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 25, 2021 at 12:10 | answer | added | Tom J Nowell♦ | timeline score: 1 | |
Feb 25, 2021 at 11:10 | comment | added | Rusydi | ya $user_id and $user_ID is the problem. Thanks for the help | |
Feb 23, 2021 at 9:42 | comment | added | Sally CJ |
From what I could see, $user_id is indeed not defined before those get_user_meta() calls. Only $user_ID that got defined earlier in your code.
|
|
Feb 23, 2021 at 7:23 | comment | added | moped | It is really, really no good idea to insert unfiltered or unsanitized values. You should validate the $_POST data before writing them to database. | |
Feb 23, 2021 at 2:55 | history | asked | Rusydi | CC BY-SA 4.0 |