SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 23rd, 2002, 12:25 AM
spectredigital spectredigital is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mesa, AZ, United States
Posts: 84 spectredigital User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 36 sec
Reputation Power: 2
Send a message via Yahoo to spectredigital
Formating Results

I am building a program for various catagories of downloads, and for the life of me I cant seem to get the script to format the catagories as 2 per line such as the way they are formatted on http://www.hotscripts.com/PHP/Scripts_and_Programs/

the code that shows the results is this

$result = $db_sql->sql_query("SELECT * FROM $cat_table WHERE subcat='0'");
while($cat = mysql_fetch_array($result)) {
$dl_counter = $cat[download_count];
$cat_counter = $db_sql->num_rows($db_sql->sql_query("SELECT catid FROM $cat_table WHERE subcat='$cat[catid]'"));
eval ("$cat_mainbit .= "".gettemplate("cat_mainbit")."";");


unset($dl_counter);
unset($cat_counter);
}

eval ("$cat = "".gettemplate("catmain")."";");



the template is just a table with some rows and columns in it. Any ideas for me?

Reply With Quote
  #2  
Old September 23rd, 2002, 12:41 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Formating Results

I've got a quick tutorial with script that shows how to do two columns like that:

http://codewalkers.com/tutorials.php?show=15


Reply With Quote
  #3  
Old September 23rd, 2002, 01:11 AM
spectredigital spectredigital is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mesa, AZ, United States
Posts: 84 spectredigital User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 36 sec
Reputation Power: 2
Send a message via Yahoo to spectredigital
RE: Formating Results

Thanks Matt, that is exactly what I needed, I just couldnt remember that stuff. I think it has been to long since I was doing alot of coding.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Formating Results


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway