|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
MySQL question:
Hi, when I do: ... $sth = $db->prepare("select nome from empresas where (uf = '$unif' and prod_serv like '%$field%')"); while (@array = $sth->fetchrow_array) { ($var) = @array; if ($var eq "") { $firma = "javascript URL_s()"; } else { $firma = "dyn_a.cgi?unif=$unfed&p_s=$field&p_s1=$var"; } } print "$firma;" exit; Question: If $var has date $firma return Ok. If $var has no date $firma return empty (???). Thanks. |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Conditional object. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|