php-general Digest 16 May 2009 13:15:18 -0000 Issue 6124

2009-05-16 Thread php-general-digest-help
php-general Digest 16 May 2009 13:15:18 - Issue 6124 Topics (messages 292666 through 292678): Re: CSS tables 292666 by: Michael A. Peters 292667 by: Michael A. Peters 292669 by: Paul M Foster 292670 by: Paul M Foster 292673 by: Ashley Sheridan

php-general Digest 17 May 2009 01:18:35 -0000 Issue 6125

2009-05-16 Thread php-general-digest-help
php-general Digest 17 May 2009 01:18:35 - Issue 6125 Topics (messages 292679 through 292692): Re: CSS tables 292679 by: Daniele Grillenzoni 292688 by: Stephen 292689 by: Robert Cummings 292690 by: Ashley Sheridan 292691 by: Robert Cummings

Re: [PHP] Sorting times (SOLVED)

2009-05-16 Thread German Geek
Just a draft i thought should not go unnoticed on the list :-) just cleaning up. OK, How about a super efficient soln where each string is only converted once and a fast sorting algorithm is used: ?php function time_sort($a, $b) { static $now = time(); if (strtotime($a, $now) ==

Re: [PHP] CSS tables

2009-05-16 Thread Paul M Foster
On Fri, May 15, 2009 at 03:12:06PM -0400, HallMarc Websites wrote: Um... sorry to jump in as a late arrival yet there you go What limitations? You could provide a layered layout using CSS and png graphic format. As for setting up columns check out float and clear and you're all set.

Re: [PHP] CSS tables

2009-05-16 Thread Paul M Foster
On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning

Re: [PHP] read the last line in a file?

2009-05-16 Thread Per Jessen
Tom Worster wrote: imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec(tail $logfile, $lines, $status) every now and then. or poll the file mtime and run

RE: [PHP] Software to read/write Excel to CD?

2009-05-16 Thread Ashley Sheridan
On Fri, 2009-05-15 at 13:55 -0400, Bob McConnell wrote: From: Bastien Koert On Fri, May 15, 2009 at 12:35 PM, Michael A. Peters mpet...@mac.com wrote: Paul M Foster wrote: On Fri, May 15, 2009 at 10:21:22AM +0100, Peter Ford wrote: Matt Graham wrote: But why write an Excel

Re: [PHP] CSS tables

2009-05-16 Thread Ashley Sheridan
On Sat, 2009-05-16 at 02:25 -0400, Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables;

Re: [PHP] CSS tables

2009-05-16 Thread Bas Avezaat
Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote I've been using div's with in css float and only setting width of elements, that way your div grow dynamically pending on data size. it takes some time figuring it out but you should be able to find examples on the

[PHP] Shopping Cart

2009-05-16 Thread Vernon St Croix
Hi, I am pretty new to PHP and I am trying to create a shopping cart. I keep on getting the below error when trying to show the shopping list. Any guidance that can be provided will be very much appreciated Fatal error: Call to a member function query() on a non-object in

Re: [PHP] Shopping Cart

2009-05-16 Thread Ashley Sheridan
On Sat, 2009-05-16 at 10:37 +0100, Vernon St Croix wrote: Hi, I am pretty new to PHP and I am trying to create a shopping cart. I keep on getting the below error when trying to show the shopping list. Any guidance that can be provided will be very much appreciated Fatal error: Call

Re: [PHP] CSS tables

2009-05-16 Thread Robert Cummings
On Sat, 2009-05-16 at 10:48 +0100, Ashley Sheridan wrote: On Sat, 2009-05-16 at 02:25 -0400, Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format

[PHP] Re: CSS tables

2009-05-16 Thread Daniele Grillenzoni
On 15/05/2009 19.25, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an

[PHP] Parsing of forms

2009-05-16 Thread Daniele Grillenzoni
I noticed that php's way to fill $_GET and $_POST is particularly inefficient when it comes to handling multiple inputs with the same name. This basically mean that every select multiple in order to function properly needs to have a name ending in '[]'. Wouldn't it be easier to also make it

[PHP] Parsing of forms

2009-05-16 Thread Daniele Grillenzoni
I noticed that php's way to fill $_GET and $_POST is particularly inefficient when it comes to handling multiple inputs with the same name. This basically mean that every select multiple in order to function properly needs to have a name ending in '[]'. Wouldn't it be easier to also make it

[PHP] Fileinfo and MSWord bug

2009-05-16 Thread b
PHP 5.2.6 file-4.17-15.el5_3.1 Fileinfo installed through PECL Checking certain MSWord files, I'm getting back (sans quotes) application/msword application/msword. Someone reported (in the manual comments) this same thing back in 2007: http://ca2.php.net/manual/en/ref.fileinfo.php#79063 Can

Re: [PHP] read the last line in a file?

2009-05-16 Thread Tom Worster
On 5/16/09 3:55 AM, Per Jessen p...@computer.org wrote: Tom Worster wrote: imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec(tail $logfile, $lines,

Re: [PHP] Shopping Cart

2009-05-16 Thread Daniel Brown
On Sat, May 16, 2009 at 05:37, Vernon St Croix vstcr...@hotmail.com wrote: Hi, I am pretty new to PHP and I am trying to create a shopping cart. Just as a side note: in the future, please do not cross-post on multiple lists. For general questions, this is the right place. The PHP-DB list

Re: [PHP] Shopping Cart

2009-05-16 Thread Shawn McKenzie
Darrel St Croix wrote: Thanks for that. I have changed the code as you suggested, but there is an error on the while loop. *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in *C:\wamp\www\draft\basket.php* on line *46* That's because $result is not

Re: [PHP] CSS tables

2009-05-16 Thread Stephen
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise.

Re: [PHP] CSS tables

2009-05-16 Thread Robert Cummings
On Sat, 2009-05-16 at 19:48 -0400, Stephen wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as

Re: [PHP] CSS tables

2009-05-16 Thread Ashley Sheridan
On Sat, 2009-05-16 at 09:15 -0400, Robert Cummings wrote: On Sat, 2009-05-16 at 10:48 +0100, Ashley Sheridan wrote: On Sat, 2009-05-16 at 02:25 -0400, Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote: I know of no better place to ask. This may not be strictly a

Re: [PHP] CSS tables

2009-05-16 Thread Robert Cummings
On Sun, 2009-05-17 at 01:52 +0100, Ashley Sheridan wrote: On Sat, 2009-05-16 at 09:15 -0400, Robert Cummings wrote: On Sat, 2009-05-16 at 10:48 +0100, Ashley Sheridan wrote: On Sat, 2009-05-16 at 02:25 -0400, Paul M Foster wrote: On Fri, May 15, 2009 at 01:25:42PM -0400, PJ wrote:

Re: [PHP] CSS tables

2009-05-16 Thread Stephen
Robert Cummings wrote: On Sat, 2009-05-16 at 19:48 -0400, Stephen wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like

Re: [PHP] CSS tables

2009-05-16 Thread Michael A. Peters
Stephen wrote: My sites are still viewable, and can be navigated. They just look strange. Government workers are used to strange :) Stephen My experience is that government web sites are often the worst, frequently designed in MS word using brutally illegal html that only works in IE.

Re: [PHP] CSS tables

2009-05-16 Thread Paul M Foster
On Sat, May 16, 2009 at 08:12:29PM -0700, Michael A. Peters wrote: Stephen wrote: My sites are still viewable, and can be navigated. They just look strange. Government workers are used to strange :) Stephen My experience is that government web sites are often the worst, frequently

Re: [PHP] CSS tables

2009-05-16 Thread Michael A. Peters
Paul M Foster wrote: On Sat, May 16, 2009 at 08:12:29PM -0700, Michael A. Peters wrote: Stephen wrote: My sites are still viewable, and can be navigated. They just look strange. Government workers are used to strange :) Stephen My experience is that government web sites are often the