Posted by FRANCK
2014-07-31

Hello there,

In template 'tpl.customers.search.inc', we use the code:
<td>
<? php
$ varvideo = trim ($ hm-> Zb ('rs: def: video'));
if (! empty ($ varvideo)) {
echo '<a href="', $varvideo,'" target="_blank"> <img src="btn_icon_play.gif"/> </ a>';
}
I need regular.>
</ td>

This code works but the field 'video' is not recognized as empty in the database even if it is empty in the database.

On empty fields 'video' of BDD, it appears on the images links web page URL of the website ...

How to fix ?

thank you
Posted by Tom
2014-08-01

>On empty fields 'video' of BDD, it appears on the images links web page URL of the website

I can't tell you why because I don't know how you are inputting data into the database. To recognize the empty case on the template side, simply echo the empty value in the template, and use the value to detect the empty case.