Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Tutorials > PHP / Perl / Java / JavaScript / CGI Tutorials

PHP / Perl / Java / JavaScript / CGI Tutorials PHP / Perl / Java / JavaScript / CGI Tutorials Please do not use this Forum to advertise your site or to link to tutorials.

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-19-2007, 09:18 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
solo1 is on a distinguished road
Retrieving data using php

Hi, does anyone here know how to display data from mysql database in columns rather than lists or rows?

Reply With Quote
  #2 (permalink)  
Old 07-20-2007, 02:14 PM
Junior Member
 
Join Date: Jul 2007
Posts: 21
FireFox is on a distinguished road
Quote:
Originally Posted by solo1 View Post
Hi, does anyone here know how to display data from mysql database in columns rather than lists or rows?
How you mean? In tables?
Reply With Quote
  #3 (permalink)  
Old 07-23-2007, 11:27 PM
Junior Member
 
Join Date: Jun 2007
Posts: 19
shendo00 is on a distinguished road
i dont remember the code

$mysql $connect..

like that..lol
Reply With Quote
  #4 (permalink)  
Old 07-25-2007, 04:55 PM
Junior Member
 
Join Date: Mar 2007
Posts: 22
Jay_Z is on a distinguished road
Are you talking about HTML tables? If not, be more specific.
Reply With Quote
  #5 (permalink)  
Old 07-26-2007, 03:51 AM
Junior Member
 
Join Date: Mar 2007
Posts: 11
Calibula is on a distinguished road
Something like this?
PHP Code:
$sql mysql_query("SELECT * FROM cars");
while(
$row=mysql_fetch_array($sql)){
$car $row['car'];
$photo $row['photo'];

echo 
"<table>
<tr>
<td>Car</td>
<td>Photo</td>
</tr>
<tr>
<td>$car</td>
<td>$photo</td>
</tr>
</table>"
;

If not, I didn't got the idea..
Reply With Quote
  #6 (permalink)  
Old 07-28-2007, 03:23 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
solo1 is on a distinguished road
I've figured it out.

Thanks for the replies but I've figured it out.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 02:10 AM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com