Re: [PHP] Re: sloppiness & stupidity

2009-06-17 Thread tedd
Ash: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED". However, it will still work but will throw a validation error/warning in some

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread tedd
e new sort. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: sloppiness & stupidity

2009-06-18 Thread tedd
At 8:47 PM -0400 6/17/09, Robert Cummings wrote: tedd wrote: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED". How is that MORE speci

RE: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread tedd
At 10:11 AM +0100 6/18/09, Ford, Mike wrote: On 17 June 2009 22:12, tedd advised: -snip- > Now, let's say you want to sort the $d array, but you also want the > arrays $a, $b, and $c to be arranged in the same resultant order as $d. > For example, please follow this: Bef

Re: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread tedd
> Ash: You missed the point. I could use the built-in sort (i.e., sort() ) and sort the $d array. However, I would like the indexes of the other arrays to match the new sort. Cheers, > tedd > I think I might need a for-instance here, as you lost me! Thanks Ash Ash: You

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread tedd
At 12:43 PM -0400 6/18/09, Robert Cummings wrote: I'm Canadian as are you. Cheers, Rob. Oh that explains a lot. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread tedd
. Star Trek II: The Wrath of Khan. Cannibal Women in the Avacado Jungle of Death. And don't forget my favorite "Queen of Outer Space" staring Zsa Zsa Gabore and a bunch of her friends -- real camp. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://

Re: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread tedd
me is a complete waste of time -- see here: http://www.webbytedd.com//multisort-rob/ Many thanks for your code. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Calendar

2009-06-20 Thread tedd
me a shout. Thanks Ash Ash et al: I like to roll and maintain my own. While it's not javascript, it works. http://webbytedd.com//tedd-php-calendar/ <-- code is there And it's fairly easy to hook up to a database, such as seen here: http://php1.net/my-php-calendar/ The ori

Re: [PHP] Multi-Sort -- how to do this?

2009-06-20 Thread tedd
At 3:36 PM -0400 6/18/09, Robert Cummings wrote: tedd wrote: At 1:45 PM -0400 6/18/09, Robert Cummings wrote: Thanks to Rob and Daniel for also playing, better luck next time. :-) <- note smiley -- I do appreciate your time. Mine version retains key associations. It wasn't a complete

RE: [PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-24 Thread tedd
simply client-side <-> sever-side communication. How that might solve your problem is beyond my understanding of what you are trying to do. I'm not a hardware guy. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

RE: [PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-24 Thread tedd
At 10:30 AM -0400 6/24/09, tedd wrote: At 12:33 PM -0700 6/23/09, Daevid Vincent wrote: Other solutions seem to involve (hackishly) polling every x seconds. Seems there should be a better way. d There might not be a better solution. This is an example of javascript poling a php script

Re: [PHP] Progressbar

2009-06-24 Thread tedd
ading a file is figuring out how large it is. You can't find that out in php and Javascript is limited in what information it can access. I found the problem more trouble than it was worth to fix. Besides, what does the user need to see while an operation is underway? Cheers, t

RE: [PHP] Re: idiot proofing

2009-06-25 Thread tedd
At 6:39 AM -0500 6/25/09, Jay Blanchard wrote: [snip] ...stuff... [/snip] I had to LOL at the subject line for the potential irony :) Me too, but for a different reason -- I fear it's too late. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

[PHP] Re: Progressbar

2009-06-25 Thread tedd
At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out in php Well you can find it out with the uploadprogress or APC PECL exten

Re: [PHP] Re: Progressbar

2009-06-25 Thread tedd
ling "Buy hosting from us and everything will be fine." As for Zend, while I purchased in back in 2005, and couldn't get it to work then, I just received a call minutes just ago from Zend who told me if I spring for another $399, I can get their newest release coming in

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread tedd
helpful. Thank you. Regards, Gautam Bhatia . Gautam: I think that play time would be proportional to file size, right? If so, then take two files and play them. Note the play times and file sizes of both and work out a algorithm. That would be the way I would try to solve it. Cheers, tedd

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread tedd
time. He's going aboutit the correct way, using existing libraries that know how retrieve the information. I would probably try ffplay (part of ffmpeg package): I stand corrected. Actually, I stand leaning a little to the right. Cheers, tedd -- --- http://sperling.com

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread tedd
At 11:22 AM -0400 6/26/09, Daniel Brown wrote: On Fri, Jun 26, 2009 at 11:17, tedd wrote: I stand corrected. Actually, I stand leaning a little to the right. And your mother dresses you funny. ;-P Well, at least I had a mother. :-) tedd -- --- http://sperling.com http

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread tedd
At 11:46 AM -0400 6/26/09, Daniel Brown wrote: On Fri, Jun 26, 2009 at 11:42, tedd wrote: Well, at least I had a mother. :-) Mrs. Sperling, Tedd's hurting my feelings Mom... he hurt my feeling first! And his mother doesn't dress him as well as you do me. -- --

Re: [PHP] fixing new lines from in an email?

2009-06-27 Thread tedd
think this example might help: http://www.webbytedd.com//email-form/index.php Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to reinstate radio-button states from database?

2009-06-29 Thread tedd
ser ID and test ID and show the questions and answers associated with that test and that user. That works for me. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail and mysql confirmation of that [double-opt in]

2009-06-29 Thread tedd
to use. If not, have them try again. Here's the script I wrote to do that: http://www.webbytedd.com/b/sub-email/index.php Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Browser Alert

2009-07-03 Thread tedd
So, if you're having problems with Safari 4.0 on Mac OSX uploading files, you're not alone. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advise on starting a web store site

2009-07-07 Thread tedd
ty off to a company that deals with it routinely. It's a simple process to use PayPal. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread tedd
le statement of: "No, I don't like stupid rules, which is why I choose not to obey them." Convinces me that you are either a child or a troll. It certainly does not support your claim that you are a 30 year professional. In any case, you are a waste of time -- welcome to my kil

[PHP] Re: SESSION variables: How much is too much?

2009-07-09 Thread tedd
en I only pass the id of the record in a session and allow the page to open the database to retrieve the variables it needs. I have found that the more session variables you pass, the more complicated the code. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://

RE: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread tedd
the battles that are worth fighting and let other contentions pass. In the wise, beyond their years, words of the Beatles "Let it be." Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread tedd
nderstand the value of their contribution and spend their time and talents where they are appreciated and not waste them on such nonsense. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread tedd
27;s a bunch of bull. But what do I know -- I'm just an old fart who tries to follow the rules. Now back to sleep z. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-10 Thread tedd
all the data associated with that customer can be obtained from a single call to the database from a single session id instead of passing those data between pages via sessions. Do you see how that works? In any event, that's the way I would do it. Cheers, tedd -- --- http://spe

Re: [PHP] HTTP headers and include()

2009-07-10 Thread tedd
en do a session_start(). But, as a matter of habit, I always make session_start() my first line of code. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open source event calendar

2009-07-10 Thread tedd
Joey: Sure, try: http://php-calendar.com That's an on-going development -- in fact I added a little contribution last month. Besides his demo, here it is working for me: http://php1.net/my-php-calendar/ If you want something simpler, try this: http://www.webbytedd.com//tedd-php-cale

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread tedd
ce it into the HEREDOC it. basename(__FILE__), 'size' => filesize(__FILE__)); $html =<<File Name: {$filedata['name']} File Size: {$filedata['size']} \$somevar: {$somevar} HTML; echo $html; ?> Daniel: Why the braces? Cheers, tedd -- --- http

Re: [PHP] MySql Injection advice

2009-07-11 Thread tedd
display the data to a browser, then I use htmlentities() and stripslashes() before displaying the data. That way names like O'Brian appear correctly -- else they appear 0\'Brian. Now maybe I'm doing something wrong, but this way works for me. If there is a better way, I would l

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread tedd
At 3:42 PM +0100 7/11/09, Ashley Sheridan wrote: On Saturday 11 July 2009 15:23:55 tedd wrote: > At 8:34 PM -0400 7/10/09, Daniel Brown wrote: -snip- > >$html =<< >File Name: {$filedata['name']} >File Size: {$filedata['size']} > > >\$s

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread tedd
hing new everyday of my life -- and I'm getting damned tried of it." Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread tedd
= (TEXT On or TEXT Off) or if you need three characters. HDO = (HEREDOC ON or HEREDOC OFF) I'm sure some clever person could come up with something better. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP headers and include()

2009-07-12 Thread tedd
brother me (lack of symmetry) if I didn't include a ?> at the end of my scripts. As for additional characters after the ?>, I make sure my terminations don't have any. Just because characters can be white space doesn't mean you can't detect them. Cheers, tedd -

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread tedd
estions answered, then they can go elsewhere, which improves the quality of this list. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySql Injection advice

2009-07-12 Thread tedd
ing() function. For example, I may want to trim() it; or check if it's a valid email address; or check if it's a number; or do any number of other checks prior to insertion. I don't want to place all those functions into a query, so why place one? Lastly, I think [1] is

Re: [PHP] MySql Injection advice

2009-07-12 Thread tedd
of forethought and consideration for others to read. tedd -- totally useless post follows: At 5:51 AM +0530 7/12/09, Zareef Ahmed wrote: On Sun, Jul 12, 2009 at 4:09 AM, Haig Dedeyan <<mailto:hdede...@videotron.ca>hdede...@videotron.ca> wrote: On July 11, 2009 10:57:14 am Hai

Re: [PHP] MySql Injection advice

2009-07-12 Thread tedd
At 9:26 PM -0400 7/11/09, Haig Dedeyan wrote: @Tedd - I will be looking into prepared statements eventually but I still want to understand escaping. Haig: I'm not the one pushing the prepared statements, that's someone else. However, I can see how you might think that consi

[PHP] Re: RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-12 Thread tedd
e here will testify. The only dumb question is the one that isn't asked. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-12 Thread tedd
vented yet, so you're ahead of the game in my book. Welcome to the list. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-12 Thread tedd
ently your reading and retention skills are fading like mine. Old age is a bitch. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySql Injection advice

2009-07-12 Thread tedd
At 8:24 PM +0530 7/12/09, Zareef Ahmed wrote: On Sun, Jul 12, 2009 at 6:32 PM, tedd <<mailto:tedd.sperl...@gmail.com>tedd.sperl...@gmail.com> wrote: Hi gang: I am top posting only to show that the following post makes no sense as to who said what. At what point here Zareef, d

Re: [PHP] MySql Injection advice

2009-07-13 Thread tedd
At 8:50 PM +0530 7/12/09, Zareef Ahmed wrote: On Sun, Jul 12, 2009 at 8:42 PM, tedd <<mailto:tedd.sperl...@gmail.com>tedd.sperl...@gmail.com> wrote: As with all communication, it's better to be clear than obtuse. Agree, but I believe "obtuse" word meaning is cont

Re: [PHP] MySql Injection advice

2009-07-13 Thread tedd
At 3:53 PM -0400 7/12/09, Paul M Foster wrote: On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: As for prepared statements, I'm no authority on them, but from what I've read they are not going to be something I'll be practicing anytime soon. Aside from Stuart&#

Re: [PHP] Alphabetical pagination

2009-07-15 Thread tedd
over... What I have so far: -snip- Why not have MySQL sort the data instead of using php? For example (from memory -- use with caution) SELECT name FROM restaurant ORDER BY name DESC LIMIT $offset, 1 Then just change the offset to go up and down the list. Cheers, tedd -- --- http://sperlin

Re: [PHP] I have an idea

2009-07-15 Thread tedd
do you like me idea? -- Here's an AI (rule based) php game: http://sperling.com/quarters/ Get your AI to beat mine. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Alphabetical pagination

2009-07-15 Thread tedd
At 4:30 PM +0100 7/15/09, Ashley Sheridan wrote: On Wednesday 15 July 2009 16:21:22 tedd wrote: At 12:38 PM -0700 7/14/09, Miller, Terion wrote: >I am trying to make a page that displays a-z like a b c d e etc as links >then when you click open one it reloads itself and shows only the

Re: [PHP] Alphabetical pagination

2009-07-15 Thread tedd
At 8:29 AM -0700 7/15/09, Miller, Terion wrote: Hi all thanks for all the suggestions, I really had no idea this was going to be so difficult.. I think you are making it more difficult than it has to be. Please review what I said and try it out. Cheers, tedd -- --- http

Re: [PHP] I have an idea

2009-07-15 Thread tedd
At 4:40 PM +0100 7/15/09, Ashley Sheridan wrote: On Wednesday 15 July 2009 16:29:49 tedd wrote: > Here's an AI (rule based) php game: http://sperling.com/quarters/ Get your AI to beat mine. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.c

Re: [PHP] I have an idea

2009-07-15 Thread tedd
ked me the same question, I qualified the bet but had no takers. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scope of Variables and use of global and this->var

2009-07-15 Thread tedd
so by including the configuration.php file that holds the logon/password et other data to connect with the database. When I'm done with what I want from the database, I close it. I do not store anything in GLOBALS. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Sub Menu System?

2009-07-16 Thread tedd
thout it, IE's are dead. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Back from the dead with a racing question!

2009-07-17 Thread tedd
o notify the next user. As for your log of activity, just create a another record (with an auto_increment index) in your activity log table and update that record with the data you need to record, such as user id, timestamp, what record they accessed and whatever else you want after t

[PHP] Message Board Recommendations

2009-07-28 Thread tedd
Hi gang: I have a client who is looking for a "Message Board for Subscribers" to be installed on his site -- one with a good admin. Any recommendations? Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

[PHP] Re: Dan Brown

2009-08-03 Thread tedd
cost to go down. So, the most I will ever lose is the work I did today -- unless I lose my house, garage, and my kids houses -- and if that happens, I have larger problems than data loss. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Gener

Re: [PHP] Re: Dan Brown

2009-08-04 Thread tedd
At 10:34 PM -0400 8/3/09, Sam Stelfox wrote: tedd wrote: Everything is backed up at least three fold. I am considering online backup and waiting for the cost to go down. You should add paper backups to that list! http://ollydbg.de/Paperbak/ Sam Stelfox Sam: That's interesti

Re: [PHP] Re: Dan Brown

2009-08-04 Thread tedd
At 6:13 PM -0400 8/3/09, Paul M Foster wrote: On Mon, Aug 03, 2009 at 01:54:05PM -0400, tedd wrote: Everything is backed up at least three fold. I am considering online backup and waiting for the cost to go down. Tried Carbonite.com? I think they're like US$55 / year. Work on Mac a

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread tedd
llman books are good. From a beginners point of view, you might want to buy some of his earlier books -- you should get a better price for a used version. That way you can work your way up to php 6. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] navigation include not functioning

2009-08-06 Thread tedd
urther along on includes. After that, you can try smart navigation: http://sperling.com/examples/smart-menu/ HTH's, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-06 Thread tedd
nd you don't know who the bad guys are. That's a recipe for disaster. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread tedd
rence back to old books. Of course, that's my opinion. Your opinion obviously differs. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-08 Thread tedd
At 10:11 PM -0400 8/6/09, Larry Ullman wrote: -snip- Sorry for the length, but I hope that helps. And thanks again. Larry Larry: No, thank you for your most excellent books -- I think I've purchased every one one you've written. They have helped me. Cheers, tedd -- --

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread tedd
d, it could be taken down to: Yanni Nx Sally Riordan Scholarship, 2007- Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Displaying user data and picture

2009-08-09 Thread tedd
already in the database, such as ID photos linked to employee numbers. 6. When you move to another server, you simply move the database and not the database AND image directories. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 10:54 AM +1000 8/9/09, Clancy wrote: On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: >Also, if you use first-child, it could be taken down to: Yanni Nx Sally Riordan Scholarship, 2007- Except that line 2 is smaller than line 1. In

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread tedd
ed to older version. is somebody out there who can give me a quick background about auto_increment and how and if I can control the behavior of mySQL about them. ralph_def...@yahoo.de Why be concerned about it? What difference does it make? Cheers, tedd -- --- http://sperling.com

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 1:05 PM +0100 8/9/09, Ashley Sheridan wrote: On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: > But, as it was said, IE's have problems with first-child rules. How does IE8 fare with selectors in CSS? Thanks, Ash tedd = clue-- or tedd < clue tedd -- --- http://s

Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-10 Thread tedd
At 12:47 AM +0200 8/10/09, Ralph Deffke wrote: I would like to have a KNOWN status of my database after a NEW installation of the application, because the further installation relais on information stored in record 1 of each table. Sounds like a problem waiting to happen. Cheers, tedd

RE: [PHP] Radio buttons problem

2009-08-10 Thread tedd
, email[], and sex[]. The solution is -- DO NOT force adding an index to each array, such as name[0], email[0], sex[0], but rather let it be name[], email[], and sex[]. If you try it, it will work. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread tedd
; docs and books, but can't remember (nor find now) in PHP how to say "inverse your value" (to a boolean). ? TIA! -G John: Here's my solution: http://webbytedd.com/b/color-rows/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.co

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread tedd
At 8:46 AM -0400 8/11/09, tedd wrote: At 4:16 PM -0600 8/10/09, John Butler wrote: quick Q: I have this inside a foreach{} that I want to alternate between on and off so I can alternate the background-color of my 's. $tableRowBGcolorBoolCounter != $tableRowBGcolorBoolCounter; //-boole

Re: [PHP] Synchronizing autonumber fields

2009-08-11 Thread tedd
er the exchange. If so, then there's no need to record their indexes. HTH's tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread tedd
t;table tr:odd").addClass("odd");; }); And yes I know that this is a PHP mailing list lol -- Conor And if javascript is turned off? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread tedd
that we don't know yet ) -- Martin Scotta The "simplest solution" is in the eyes of the beholder. My solution was the simplest for the problem presented. You presented a different problem with a different solution. Cheers, tedd -- --- http://sperling.com http://a

[PHP] Calendar Problem

2009-08-11 Thread tedd
Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and Sept 4. I'm curious, how would you guys solve this? Che

Re: [PHP] Embedding foreach loops

2009-08-11 Thread tedd
At 12:44 PM -0700 8/11/09, Ben Dunlap wrote: This is probably flame-war tinder, so I'll try to tread more delicately in the future. Next you know we'll be on the ternary operator and which is better, Mac or Windows. ;-) Ben That was won long ago, it's Mac. :-) Cheers, tedd

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread tedd
Yeah, but forearch ain't going to work. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calendar Problem

2009-08-12 Thread tedd
At 4:08 PM -0400 8/11/09, Robert Cummings wrote: tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and S

Re: [PHP] Calendar Problem

2009-08-12 Thread tedd
most test. Check this: http://php1.net/b/fridays/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calendar Problem

2009-08-12 Thread tedd
At 11:03 AM -0300 8/12/09, Martin Scotta wrote: Hi all This is my point of view. I try to stay the most legible and simple as possible. @tedd: can you benchmark this script too? usualy legibility > performance Martin: It's included here: http://php1.net/b/fridays/ Works great -

Re: [PHP] Calendar Problem

2009-08-12 Thread tedd
At 3:26 PM +0100 8/12/09, Stuart wrote: 2009/8/12 tedd : At 4:08 PM -0400 8/11/09, Robert Cummings wrote: I think Shawn McKenzie's is the best. It seems his would take at most 12 iterations. Cheers, Rob. Rob: For some reason I did not see/consider Shawn's solutions -- s

Re: [PHP] Calendar Problem

2009-08-12 Thread tedd
At 9:50 AM -0500 8/12/09, Shawn McKenzie wrote: tedd wrote: Your solution had 61 iterations (for loop) while mind had only 21, so mine's a bit faster. Here's the comparison: http://php1.net/b/fridays/ But I'll use your solution -- it's more elegant. Thanks

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-12 Thread tedd
times inheritance overrides what you think is happening. In such cases, try adding !important to the rule and I think you'll see what you expect. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.ph

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread tedd
you don't know any better. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: [PHP] Re: Re: Re: Design Patterns

2009-08-14 Thread tedd
ers this matters. -snip- > My physician had best never mention cutting structures off my semiconductor. -Shawn Me too! I haven't much to spare. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.p

[PHP] Another date exercise

2009-08-15 Thread tedd
t and "Mar" for March and so on. Gentlemen, start your keyboards. :-) As always, should you or any of your IM Force be caught or killed, The Secretary will disavow any knowledge of your actions. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earths

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
e are numerous javascript solutions (some good, some bad), but ALL of their data has to be accepted and scrubbed by a php script anyway, so I was suggesting creating a php script to do it. If it's not a good exercise, then don't do it. Cheers, tedd -- --- http://spe

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
get people to expound on the problems they encountered. Instead, I received "use javascript". Okay... but that's not a php solution, right? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://ww

Re: [PHP] Another date exercise

2009-08-17 Thread tedd
nd see how that works out for you. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-19 Thread tedd
so on. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and CGI

2009-08-19 Thread tedd
, Frank Frank: I won't guarantee that this will work, but it's worth a try. In your .htacess file add this: # handler for phpsuexec. -- makes following prefixes considered for php SetHandler application/x-httpd-php If it works, let me know. Cheers, tedd -- --- http://sp

[PHP] Re: Help on pregreplace

2009-08-19 Thread tedd
tyle attributes to a style sheet and then using a class name like so: $replace = '\\1'; That way you can change highlighting as you want without altering your code. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Ma

Re: [PHP] Another date exercise

2009-08-19 Thread tedd
s: http://php1.net/b/date-picker/index.php It's not thoroughly tested, but thus far it works. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there limitation for switch case: argument's value?

2009-08-24 Thread tedd
switch ($sum) { case 0: break; case 1: case 2: break; case 6: case 7: break; case 8: break; default: break; } Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://w

Re: [PHP] preg_replace anything that isn't WORD

2009-08-24 Thread tedd
like /[^(dog|cat)]+/ but no success > What should I do? Lot's of ways to skin this cat/dog. What's wrong with exploding the string using spaces and then walking the array looking for cat and dog while assembling the resultant string? Cheers, tedd -- --- http://sperling.com

<    1   2   3   4   5   6   7   8   9   10   >