| | |
Need a Simple Solution
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi,
I am having 100 records in my database and i fetch them from database.
Now i am displaying it in table i want to display it like
1 2
3 4
in different td.
But when i give query it echo in stringht line
1
2
3
4
.
Solution to divide it in two td.
Thankx
I am having 100 records in my database and i fetch them from database.
Now i am displaying it in table i want to display it like
1 2
3 4
in different td.
But when i give query it echo in stringht line
1
2
3
4
.
Solution to divide it in two td.
Thankx
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??
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??
Gabriel Villa
software development/ IT support consultant
software development/ IT support consultant
•
•
•
•
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??
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
Hi dss,
I understand your doubt. Please review th below URL
http://www.daniweb.com/techtalkforums/thread20917.html
I think the above URL may be useful for you to display the records in your required format.
thanks
I understand your doubt. Please review th below URL
http://www.daniweb.com/techtalkforums/thread20917.html
I think the above URL may be useful for you to display the records in your required format.
thanks
![]() |
Similar Threads
- Simple solution to database (C++)
- Help with Infostealer and Trojan.Metajuan (Viruses, Spyware and other Nasties)
- solution for screencapture from Analog monitor (Monitors, Displays and Video Cards)
- Help needed in simple app while using XML,XSL (XML, XSLT and XPATH)
- theres GOT to be a simple solution for this one. . . (C++)
- simple solution? Parsing question (C++)
- on a simple airline booking program (C)
- WMP Internal Application Error: the ultimate solution (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: mysql_query() failing. Why?
- Next Thread: Fatal Error
Views: 1000 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update updates upload url validation validator variable video web xml youtube





