PAD - PHP Application Driver


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


Db/array

PHP
db/array.php
HTML
db/array.pad
Result
<?php

$array_1
= db ("array name, phone from staff where phone like '%4%'");

$array_2 = db ("array * from staff where name like '%x%'");

?>
<h3>array, found</h3>

<table border=1>
{array_1}
<tr>
<td>{$name}</td>
<td>{$phone}</td>
</tr>
@else@
<tr>
<td>Nothing</td>
<td>Found</td>
</tr>
{/array_1}
</table>

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

<table border=1>
{array_2}
<tr>
<td>{$name}</td>
<td>{$phone}</td>
</tr>
@else@
<tr>
<td>Nothing</td>
<td>Found</td>
</tr>
{/array_2}
</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