Search found 4 matches

by LostSoul
Sun Dec 15, 2002 8:23 pm
Forum: PHP - Code
Topic: Text to html table?
Replies: 1
Views: 472

Good luck.

Here's a quick and dirty way to get what you need. <? $readfile = file("TVlist.txt"); $colorCount = 0; for ($k=0; $k<=count($readfile)-1; $k++) { if($colorCount == '0') { $color = "#99CCFF"; $colorCount++; } else { $color = "#ffffff"; $colorCount = 0; } ?> <tr> <td alig...
by LostSoul
Sun Dec 15, 2002 8:12 pm
Forum: PHP - Code
Topic: NEED HELP: Multi-Row and Column output
Replies: 1
Views: 708

pb2ya: Dump $dir_handle into an array called $file, use count() to get the size of $file: $fileCount = count($file); $columnCount = 0; Setup a for() loop using $fileCount and start echoing data: <table> <tr> for($qw=0;$qw<$fileCount;$qw++) { // 4 will be the number of cells across if($columnCount !=...
by LostSoul
Sun Dec 15, 2002 7:55 pm
Forum: PHP - Code
Topic: help with encoding url params - where do you get it
Replies: 1
Views: 416

greg_soulsby: The core of you r problem may just be you aren't adding slashes before encoding the string. Try that and remember to stripslashes before you use it. I'm saying this only if your form is actually sending "name LIKE "a%" also the % after the a may be interpreted by the bro...
by LostSoul
Sun Dec 15, 2002 7:46 pm
Forum: PHP - Code
Topic: Picture script
Replies: 1
Views: 401

PHP and Images

thoughtriot: There are a lot of ways to tackle this one. First off most PHP installs are compiled with the GD library available for image manipulation. Resizing images on the fly is one thing you can do with PHP. If you intend to maintain your galleries by using directories for each gallery you can ...