are your trying to formnat the
1 2
3 4
in your HTML or in the Query it self??

what is your current code that returns the straight line, is that your SQL??

What Database are you using, can you create a Cursor??

are your trying to formnat the
1 2
3 4
in your HTML or in the Query it self??

what is your current code that returns the straight line, is that your SQL??

What Database are you using, can you create a Cursor??[/quote]

code

<?php
  require_once('../mysql_connect.php');
  $query="select * from article_directory order by category asc";
  $result=mysql_query($query);
  while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
  {;?>
   <tr>
        <td><?php echo $row['category'];?></td>
       <td><?php echo $row['category'];?></td>
   <?php } ;?>

It returns category
i need output like

1category          2category
3category          4category

(assume table structure)

it is returning

1category
2ctegory 

so on

Thankx

Edited 3 Years Ago by pyTony: fixed formatting

This article has been dead for over six months. Start a new discussion instead.