PAD - PHP Application Driver


home | manual | reference | regression | sequence | develop | apps


Db/array2

PHP
HTML
db/array2.pad
Result
<h3>array, found</h3>

<table border=1>
{array "name, phone from staff where phone like '%4%'"}
<tr>
<td>{$name}</td>
<td>{$phone}</td>
</tr>
@else@
<tr>
<td>Nothing</td>
<td>Found</td>
</tr>
{/array}
</table>

<h3>array, no records found</h3>

<table border=1>
{array "* from staff where name like '%x%'"}
<tr>
<td>{$name}</td>
<td>{$phone}</td>
</tr>
@else@
<tr>
<td>Nothing</td>
<td>Found</td>
</tr>
{/array}
</table>

array, found

bob 555-3425
jim 555-4364
joe 555-3422
jerry 555-4973

array, no records found

Nothing Found



home | manual | reference | regression | sequence | develop | apps

(c) 2003-2025 Herbert Groot Jebbink