![]() |
| Sponsored Links (We share ad revenue): |
|
|
Re: php tables |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
Tables aren't necessary, but they're commonly used. You just need to modify your loop. For example, if you want it to show three links/images per line:
PHP Code:
![]()
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
Re: php tables |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
Stop incrementing $fp
![]()
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
Re: php tables |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
Oh -- and from your code it looks like there is only one set of data per line, so you can call fgets without the second parameter.
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
Re: php tables |
|
Super Talker
Posts: 128
|
i have removed
$fp++; } and it still doesnt work. |
|
|
|
|
|
Re: php tables |
|
Skilled Talker
Posts: 97
Name: Chris Duerr
|
What does your web server error log say? Any warnings generated? If you view the source do you just see empty table data? Throw in some print() commands to see where it's stopping.
__________________
Chris Duerr AddonChat Java Chat Software http://www.addonchat.com/ - Affiliate Program |
|
|
|
|
|
Re: php tables |
|
Super Talker
Posts: 128
|
there is nothing in the pages source at all.
|
|
|
|
|
|
Re: php tables |
|
Ultra Talker
Latest Blog Post:
Web Development Business Tips Posts: 397
|
Are you including your html page into your php page?
|
|
|
|
|
|
Re: php tables |
|
Super Talker
Posts: 128
|
its one page.
a php page with html and css. |
|
|
|
|
|
Re: php tables |
|
Weightlifting CS Student
Posts: 480
Name: Nick Ohrn
|
simster - could you post a sample data file?
__________________
NickOhrn.com - My personal haven of insight to offer the world. Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others. |
|
|
|
|
|
Re: php tables |
|
Super Talker
Posts: 128
|
I fixed this (had to rewrite code 2 times after the code I put up here)
|
|
|
|
|
|
Re: php tables |
|
Weightlifting CS Student
Posts: 480
Name: Nick Ohrn
|
PHP Code:
__________________
NickOhrn.com - My personal haven of insight to offer the world. Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others. |
|
|
|
|
|
Re: php tables |
|
Super Talker
Posts: 128
|
its all fixed and I added a kind of sort to it. (its now in pagination help?) with a different question.
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |