|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Formating Results |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|