Grow your CSS skills. Land your dream job.

problem with div tags

  • # August 9, 2009 at 3:25 am
    Code:

    < ?php

    include("mysql_connect.php");

    echo "

    id
    forum
    topics
    post
    created on

    “;

    $sql = mysql_query(“SELECT * FROM category ORDER BY cat_id “);

    while($row = mysql_fetch_array($sql)) {
    $topics = mysql_num_rows(mysql_query(“SELECT * FROM topics WHERE cat_id=’”.$row['cat_id'].”‘”));
    $replies = mysql_num_rows(mysql_query(“SELECT * FROM replies WHERE cat_id=’”.$row['cat_id'].”‘”));
    echo”

    “.$row['cat_id'].”
    “.$topics.”
    “.$replies.”
    “.date(“j/n – y”,$row['created']).”

    “;

    }

    echo ““;
    mysql_close($con);
    ?>

    i want to use div to get table like effect but it is not producing it….where is the prob.?

    Rob
    # August 9, 2009 at 9:55 am

    mmm – if you are using divs to make a table – you should just use a table :)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".