PAD - PHP Application Driver


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


Db/record2

PHP
HTML
db/record2.pad
Result
<h3>record, found</h3>

{record "* from staff where name = 'jim'"}
<p>Jim's phone number is {$phone}, his salary is {$salary}</p>
@else@
<p>Jim does not work here</p>
{/record}

<h3>record, not found</h3>

{record "* from staff where name = 'john'"}
<p>John's phone number is {$phone}, his salary is {$salary}</p>
@else@
<p>John does not work here</p>
{/record}

record, found

Jim's phone number is 555-4364, his salary is 2000.00

record, not found

John does not work here




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

(c) 2003-2025 Herbert Groot Jebbink