douzongluo7542 2013-04-24 16:26
浏览 701

检查mysql数据库PHP中的N / A值

My database record contains column which is N/A value which is null.

But when I retrieve them from mysql database. It shows me N/A value which I don't want to see. I did a check for that ,but no luck, the checking condition is fail

I used

empty()
is_null()
$my_variable == null
$my_variable == " "

but the check still fail. Any know how to use PHP to check the value that retrieved from the database?

updated ques: Name Type Collation Attributes Null Default Extra Actio

 4  description text    latin1_swedish_ci       No  None

default is none

  • 写回答

1条回答 默认 最新

  • drsrq26482 2013-04-25 11:12
    关注

    I changed it to default NULL and the field can be NULL, then right now I can check for null value.

    评论

报告相同问题?

悬赏问题

  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度