Jump to content

Test Champs Null Tpl


Go to solution Solved by xaxa,

Recommended Posts

Bonjour,

 

je n'arrive pas à trouver la solution pour tester une variable qui contient la valeur "Null" extraite d'une table SQL.

 

Quelqu'un saurait-il s'il vous plait ?

 

Merci :)

Share this post


Link to post
Share on other sites

Salut,

 

Je suppose que tu as déjà essayé ça ?

is_null($var)
$var === null

On dirait que la valeur "Null" est directement écrite en chaîne non ? Donc pourquoi pas faire tout simplement un :

$var == "Null"

^^

Edited by Matt K. (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More