Web Analytics Made Easy -
StatCounter How to set blob field to NULL not the value of blob to NULL - CodingForum

Announcement

Collapse
No announcement yet.

How to set blob field to NULL not the value of blob to NULL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set blob field to NULL not the value of blob to NULL

    hi,

    I need to set a blog field to NULL litterally. When i set the blob to NULL using phpMyAdmin then i can see the field is NULL. However when i set the field to NULL using PDO the value is [BLOB-4 B] which looks like this a:0:{} which is 4 bytes i guess. That is not what i want, i want the field to be NULL just like when i set it with phpMyAdmin. I know this is a bit picky but i would like to find a way to do this.

    Any ideas ?

    Thanks.. see image for example

    Click image for larger version

Name:	settonullexample.jpg
Views:	36
Size:	11.6 KB
ID:	2436809

    Last edited by durangod; Jul 15, 2023, 01:11 PM.
    I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave
Working...
X
😀
🥰
🤢
😎
😡
👍
👎