[isf-wifidog] PHP/SQL Statement help

Gabe Sawhney gabe at pwd.ca
Dim 18 Mai 10:55:16 EDT 2008


It's a (very dense) if-then:
http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary

Gabe


On Sun, May 18, 2008 at 6:11 AM, Robin Jones <Robin at networkfusion.co.uk>
wrote:

>  If possible, can someone please explain this PHP statement, it is found
> in /ping/index.php.
>
>
>
> !empty($_REQUEST['sys_uptime'])?$sysUptimeSql = ",
> last_heartbeat_sys_uptime=".$db->escapeString($_REQUEST['sys_uptime']):$sysUptimeSql=",
> last_heartbeat_sys_uptime=NULL";
>
>
>
> I am slowly getting to grips with PHP, but this one is slightly beyond me.
>
>
>
> Thanks
>
>
>
> Robin.
>
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20080518/94f508bc/attachment.htm 


Plus d'informations sur la liste de diffusion WiFiDog