View Single Post
Old 12-21-2007, 01:40 AM   #2 (permalink)
jdspc
v7n Mentor
 
jdspc's Avatar
 
Join Date: 12-05-07
Location: Clear Lake City, TX
Posts: 980
iTrader: 0 / 0%
Latest Blog:
Too Easy

jdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to beholdjdspc is a splendid one to behold
This is an example of what I use to table a list of recent topics by topic, author and date to my index.php page.
Definitly get another opinion, I am just swingin in the dark here but it might spark an idea at least.
PHP Code:
<?php require("path/to/myDB"); ?>
<html>
<head></head>
<body>
blah blah
<?php
    $array 
myDB(field1,field2,field3,field4,field5,'array');
    foreach (
$array as $hack)
    {
        echo 
'
            <table border="0" width="100%" align="center" class="ssi_table">
                <tr>
                    <td><b>'
$hack['field1'], '</b></td>
                </tr>
                <tr>
                    <td><b>'
$hack['field2'], '</b></td>
                </tr>
                <tr>
                    <td><b>'
$hack['field3'], '</b></td>
                </tr>
                <tr>
                    <td><b>'
$hack['field4'], '</b></td>
                </tr>
                <tr>
                    <td>'
'<a href="' $hack['href'] . '">' $hack['field5'], '<br /><br /></td>
                </tr>
            </table>
            <br />'
;
        if (!
$hack['is_last'])
            echo 
'
            <hr width="100%" />
            <br />'
;
    }
?>
</body>
</html>
__________________
Visiting Angels Houston


I spell bad because I can...
jdspc is offline   Reply With Quote