![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { |
#4
| |||
| |||
|
|
geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. |
#5
| |||
| |||
|
|
geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. |
#6
| |||
| |||
|
|
geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. |
#7
| |||
| |||
|
|
geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. |
#8
| |||
| |||
|
|
geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. |
#9
| |||
| |||
|
|
On 1 Jun 2011 06:19:48 GMT, "Erick T. Barkhuis" erick.use-net (AT) ardane (DOT) c.o.m> wrote: geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. Erik, 'apologies for spelling your name wrongly .. have only just realised. Cheers Geoff |
#10
| |||
| |||
|
|
On 1 Jun 2011 06:19:48 GMT, "Erick T. Barkhuis" erick.use-net (AT) ardane (DOT) c.o.m> wrote: geoff (AT) invalid (DOT) invalid: while($row = mysql_fetch_array($lab2_)) { if ($row['DTnew'] !=''){ $dt = $row['DTnew']; $newdt = date('d-m-Y H:i:s', $dt); echo '<td>' . $newdt . '</td>'; } else { This will print 1-1-70 when $row['DTnew'] is null. I assume that's the case. Eric if I use if ($row['DT'] !=''){ echo '<td>' . 'help' . '</td>'; } else { echo '<td>' . ' ' . '</td>'; } then all the data columns have "help" in them, the first line also having the names of the columns, so presumably $row['DTnew'] is never empty? Is this the same as never null? |
![]() |
| Thread Tools | |
| Display Modes | |
| |