2 require('../../php-delicious.inc.php');
4 define('DELICIOUS_USER', 'YOUR_USER');
5 define('DELICIOUS_PASS', 'YOUR_PASS');
7 $oDelicious = new PhpDelicious(DELICIOUS_USER
, DELICIOUS_PASS
);
9 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
13 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
14 <title
>Simple Table of All Posts
</title
>
15 <style type
="text/css">
16 body { font
-family
: Arial
, sans
-serif
; }
17 h1 { font
-size
: 121%
; }
18 table { font
-size
: 92%
; }
19 th { background
: #ccc; padding: 7px; text-align: left; }
20 td { border
-bottom
: 1px solid
#ccc; padding: 7px; }
25 <h1
>Simple Table of All Posts
</h1
>
26 <?php
if ($aPosts = $oDelicious->GetAllPosts()) { ?>
27 <p
><?=count($aPosts) ?> posts in this account
. Results cached
for 10 seconds (by
default).</p
>
34 <?php
foreach ($aPosts as $aPost) { ?>
36 <td
><a href
="<?=$aPost['url'] ?>"><?=$aPost['desc'] ?></a
></td
>
37 <td
><?=$aPost['notes'] ?></td
>
38 <td
><?=$aPost['updated'] ?></td
>
44 echo $oDelicious->LastErrorString();