What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » simple php help

simple php help
Author: Message:
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: simple php help
Small sample to be used with mysql_fetch_assoc:
code:
<?
$cols = 4;
$now = 0;
echo '<table><tr>';
    while($d = mysql_fetch_assoc($sql_query)) {
    echo '<td>'.$d['column1'].'</td>';
    $now++;

        if($now == $cols) {
        echo '</tr><tr>';
        $now = 0;
        }
    }
echo '</tr></table>';
?>

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

01-05-2006 06:26 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
simple php help - by spokes on 01-05-2006 at 06:08 PM
RE: simple php help - by L. Coyote on 01-05-2006 at 06:26 PM
RE: simple php help - by spokes on 01-05-2006 at 06:38 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On