Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread tedd
At 2:19 PM +0100 4/23/09, Tony Marston wrote: "tedd" wrote in message > It's called "Structured programming" -- one way in and one way out of a function. There are, of course, exceptions where it might help others reviewing your code to see what's going o

Re: [PHP] checkboxes

2009-04-23 Thread tedd
At 10:11 AM -0400 4/23/09, PJ wrote: tedd wrote: > http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place their search criteria. HTH&

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread tedd
At 10:25 AM -0400 4/23/09, Robert Cummings wrote: On Thu, 2009-04-23 at 10:14 -0400, tedd wrote: > However, I am saying (after years of reading other people's code) it is generally much easier to read code that follows "Structured Programming" than it is to read code that d

Re: [PHP] checkboxes

2009-04-23 Thread tedd
At 4:58 PM -0400 4/23/09, PJ wrote: >>> tedd wrote: >>> > http://php1.net/a/edit-db-demo/ >>> >H I've looked at your demo and, frankly, don't see it working. When I enter names and click on one of the search buttons, I don't get sane

Re: [PHP] checkboxes

2009-04-24 Thread tedd
At 5:30 PM -0500 4/23/09, Lists wrote: Tedd, nice looking contact demo thingy.. but PJ has a point. ;-) It would make the app perhaps more intuitive if one could just type text in any of the 3 fields and then spit out results that match all of the comparisons that are not blank by clicking

Re: [PHP] MAIL Error

2009-04-24 Thread tedd
At 11:13 AM +0200 4/24/09, Jan G.B. wrote: 2009/4/22 tedd : > Your opinion as to IF I should say something, or not, carries little weight. When you've donated enough time helping others on this list, then perhaps that will change. Sorry, but that's a bad attitude in my opini

Re: [PHP] I need ideas for things to code

2009-04-25 Thread tedd
will give you the idea. Just make a inventory of examples and post them with code. Not only will it help you, but might help others when you answer questions on this list showing the solution. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com

Re: [PHP] Change color of anything in double/single quotes

2009-04-26 Thread tedd
uot;" The font tag is dead and embedded styling should moved to css. There are lot's of ways to do this, here's one: You might also check out first-child in css. That way you can make "hello" in red and "there" in whatever the element color is in one s

Re: [PHP] Change color of anything in double/single quotes

2009-04-26 Thread tedd
At 9:47 AM -0400 4/26/09, Robert Cummings wrote: On Sun, 2009-04-26 at 14:49 +0100, Ashley Sheridan wrote: > On Sun, 2009-04-26 at 09:41 -0400, tedd wrote: > > > > > I'd go further on that and say don't call your class 'red', as it > doesn't

Re: [PHP] Change color of anything in double/single quotes

2009-04-26 Thread tedd
At 11:59 AM -0400 4/26/09, Robert Cummings wrote: On Sun, 2009-04-26 at 11:40 -0400, tedd wrote: > While it might not fit with the purest css, it works for me. YMMV. :-) Your thinking is flawed. Yes you could have a class called center and it does exactly that... center the text. However

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread tedd
me indication of where/when an error has been introduced. Many time when I'm using a piece of code that isn't formatted as I like, I first get it to work as I want changing only the functions that I must change. After everything is working, I then step through the code, reformat

RE: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
point here is for ME to have a place to fall back to for reference. Cheers, tedd PS: My site is down at the moment. -- --- 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 need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
At 9:20 PM -0400 4/27/09, Paul M Foster wrote: I noticed that, too. But I have to say, this is one of the coolest sites I've ever seen. If you wanted to convince someone (a prospect) you could do something, this site would do it. Next time I talk to a prospect, I'm gonna call mysel

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-28 Thread tedd
At 9:10 AM -0500 4/28/09, Shawn McKenzie wrote: You would need to call yourself "tedd" not Tedd :-) -- Thanks! -Shawn That's true. I went by the name "Tedd" in my previous life, see: http://geophysics.com (I think the site is down at the moment) In my current li

Re: [PHP] graphical integrated development environment recommendations?

2009-05-02 Thread tedd
27;s a bitch to get everything back the way it was. It has zero tolerance for files that might have a problem. 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] Dynamically Rename Images

2009-05-03 Thread tedd
At 10:19 PM -0400 5/2/09, Andrew Hucks wrote: Is it possible to rename images dynamically? Images are nothing more than files. Load in the file, rename it as you want, and save. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General

Re: [PHP] elseif statements

2009-05-05 Thread tedd
my opinion, never use elseif -- I've never used it. I don't see any reason whatsoever to do so. In my opinion, whenever your choices exceed two, use switch. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] Forcing a Post of data

2009-05-05 Thread tedd
ey, I need POST not GET" I rethink what I'm doing. 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] SimpleXML output encoding

2009-05-05 Thread tedd
possible? thanks. -- Ondrej Kulaty Why? <http://www.cl.cam.ac.uk/~mgk25/unicode.html> 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] Avoid to open mysql querries then times in the page

2009-05-05 Thread tedd
ke sure that when I open a connection, I close the connection I may have several open/close statements within a page, but normally I try to avoid that. 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] elseif statements

2009-05-05 Thread tedd
At 10:13 AM -0400 5/5/09, Robert Cummings wrote: On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: > At 2:57 PM -0400 5/4/09, Gary wrote: > >I am trying to get this to work, however it only reads the second if > >state

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 11:29 AM -0400 5/5/09, Robert Cummings wrote: On Tue, 2009-05-05 at 11:21 -0400, tedd wrote: > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: > >Just so we all know why... Yep -- just so we know why: > <http://php1.net/a/if-v-switch/> > It all depends

Re: [PHP] elseif statements

2009-05-05 Thread tedd
can't follow, I do concede. 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] elseif statements

2009-05-05 Thread tedd
At 1:11 PM -0400 5/5/09, Paul M Foster wrote: I hate to dogpile on Tedd, ... No problem. Some days you're the windshield and some days you're the bug. Hey, I've been wrong before -- I'm used to it. But in my defense, I've always had major problems understanding lon

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-05 Thread tedd
id you do?" Oh well, we all stand somewhere between the stupid and smart marks on the scale of intelligence. 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 deal with identical fields in db

2009-05-05 Thread tedd
ow 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] How to deal with identical fields in db

2009-05-06 Thread tedd
At 3:14 AM -0700 5/6/09, Michael A. Peters wrote: Peter Ford wrote: tedd wrote: (and I added in some extra bits...) You need to normalize. Authors should have an unique id in an authors table. The authors table has all the specific information about authors, but not the books they have

Re: [PHP] Watermarking of images

2009-05-11 Thread tedd
e for watermarking images? Michael: Here's an example with code: http://webbytedd.com/b/watermark/ 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] Can includes be used for head tags?

2009-05-11 Thread tedd
At 12:41 PM -0400 5/11/09, Gary wrote: I was thinking of creating a php include for the tags for a site. Is this possible? Gary Gary: Certainly -- I do that with my sperling.com site. Every page has it's own set of meta tags. Cheers, tedd -- --- http://sperling.com

[PHP] Re: Can includes be used for head tags?

2009-05-12 Thread tedd
for me. While I get good reports from Google, Yahoo, AllTheWeb and AltaVista, I never seem to get my sites listed with MSN. 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] Watermarking of images

2009-05-12 Thread tedd
sta. All I did was to remove the references to empty js and css files. Cheers, tedd PS: "weeks ago?" I just posted this yesterday. -- --- 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] Watermarking of images

2009-05-12 Thread tedd
At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: > > > Here's an example with code: >> > > > > http://webbytedd.com/b/watermark/ >> >>

RE: [PHP] Watermarking of images

2009-05-13 Thread tedd
At 4:39 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: > While your post dealt with [2] mine was addressing [1]. Understand? Except he already had that part working. He wanted to get the outline. You would know that if you read the full post since

RE: [PHP] Watermarking of images

2009-05-13 Thread tedd
At 9:49 AM -0400 5/13/09, Robert Cummings wrote: In the interest of increasing my rightness ratio, I'd just like to point out that I'm not always right :) Check the weather channel -- a cold front is being reported in Hell. Cheers, tedd -- --- http://sperling

Re: [PHP] php & html integration

2009-05-14 Thread tedd
be show as a H1 headline. Please note, the "()" seen in my use of echo is not necessary -- it's just another one of those things that I do that no one else does. It's not wrong, but it serves no purpose other than it looks good and makes sense *to me* YMMV. Cheers, tedd -

Re: [PHP] php & html integration

2009-05-15 Thread tedd
At 8:41 AM -0400 5/15/09, Robert Cummings wrote: On Fri, 2009-05-15 at 05:42 -0400, Robert Cummings wrote: On Thu, 2009-05-14 at 17:24 -0700, Michael A. Peters wrote: > tedd wrote: > > > > > > > > > > > > > and Hello World will be show as

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-15 Thread tedd
is current world of "political correctness" we must "feel" for the people who have made bad choices -- but I say "screw 'em" -- they should know better! :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
is somewhere between Rob/Stuart and Sterex) and use either the tag or the nlbr() function depending upon what you want to do with the output. Both solutions [1 and 2] provide different ways to handle data. Number [3] simply creates another problem you, or someone else, will have to

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 8:38 PM +0530 5/15/09, Manoj Sterex wrote: @tedd: Its just another way of looking at the things. Putting HTML into the DB is not really wrong (perhaps in this context it is). If you do have HTML in the DB, you can directly echo it out and use CSS to style it accordingly. Just my 2 cents

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
HTML doesn't recognize newlines when it displays text. The tag maintains the formatting of your original text, including newlines. Unfortunately, it also displays text in a monospace font. Paul I believe that you can override that with css. Cheers, tedd -- --- http://sperling

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
At 11:19 AM -0400 5/15/09, Robert Cummings wrote: On Fri, 2009-05-15 at 10:54 -0400, tedd wrote: > 4. Or, listen to me (who is somewhere between Rob/Stuart and Sterex) and use either the tag or the nlbr() function depending upon what you want to do with the output. Both solutions [1 an

Re: [PHP] CSS & tables

2009-05-15 Thread tedd
o use tables for their layout and I must bite my lip and comply. But, more and more clients are listening to reason as they discover it really is better way to go. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] textarea new line to mysql database

2009-05-15 Thread tedd
r Whoa -- and I thought you were just another pretty face. Good point. 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] CSS & tables

2009-05-15 Thread tedd
th forms if the forms are properly labeled. So, I think that's acceptable, but am sure heathen in css terms. But whenever/wherever I can, I try to avoid using tables -- especially in layouts. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones

Re: [PHP] CSS & tables

2009-05-17 Thread tedd
ating an issue with you, is like arguing with God -- I seldom want to do it because I usually have my ass handed back to me. However, I usually learn something in the process -- so, it's a bittersweet thing. 3. My quota for learning stuff this week has been met and thus I am reluctant to po

Re: [PHP] CSS & tables

2009-05-17 Thread tedd
At 11:28 PM +0100 5/15/09, Nathan Rixham wrote: tedd wrote: However, there are occasions such as in a calendar where not using a table would be more than difficult. I haven't received a decree yet as to IF that would be considered column data or not. I'm gonna differ on this one

Re: [PHP] CSS & tables

2009-05-17 Thread tedd
yours? I think the next big thing will be an argument over meaning. :-) 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] CSS & tables

2009-05-17 Thread tedd
At 9:15 AM -0400 5/16/09, Robert Cummings wrote: FWIW, everything I've read indicates that tables don't affect SEO. Cheers, Rob. Same here -- content is different than html. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- P

[PHP] Re: CSS & tables

2009-05-17 Thread tedd
- only for simple sites. And for pixel perfect, no browser does that. Here's my write-up on the subject: http://sperling.com/four-things-clients-should-know.php Comments welcome. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Gener

Re: [PHP] CSS & tables

2009-05-17 Thread tedd
our. Stephen Stephen: Browser sniffing is a losing battle. 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] CSS & tables

2009-05-17 Thread tedd
private sector. Do as I instruct, not as I do. 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] Shopping Cart

2009-05-17 Thread tedd
install 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] CSS & tables

2009-05-18 Thread tedd
developer should accommodate IE 6 regardless of it's shortcomings. 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] CSS & tables

2009-05-18 Thread tedd
was* doing it, but that's not the case. In any event, your semantic thing appears more interesting and I suspect there's more to follow. Jut wait a moment, while I empty my head of useless childhood memories and await the onslaught of new things to consider. :-) 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] CSS & tables

2009-05-18 Thread tedd
At 5:14 PM +0100 5/18/09, Nathan Rixham wrote: -- computing ... .. . hows the childhood memories? I had a childhood? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] CSS & tables

2009-05-18 Thread tedd
At 8:15 PM +0100 5/18/09, Ashley Sheridan wrote: On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: > I think the next big thing will be an argument over meaning. :-) I don't mean using id attributes that appear to have meaning, but using the proper tags to mark up content. That'

RE: [PHP] CSS & tables

2009-05-19 Thread tedd
king that for future thievery. :-) 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] CSS & tables

2009-05-19 Thread tedd
At 4:03 PM -0700 5/18/09, Michael A. Peters wrote: tedd wrote: However, I cite things like a calendar, and your MUD site, and other such solutions that would be very difficult to accomplish using pure css. I don't know about the MUD site - but again, a calendar is tabular dat

Re: [PHP] CSS & tables

2009-05-19 Thread tedd
At 4:24 PM -0700 5/18/09, Michael A. Peters wrote: tedd wrote: In most technical things you are right, but here I have to agree with Paul. The user is king -- you must to design for them regardless of their browser of choice -- even if their choice is a bad one. No. You must design for a

Re: [PHP] CSS & tables

2009-05-19 Thread tedd
You make my head hurt! :-) I'm much simpler. I simply design a site and make it look good on all modern browsers. It will not pixel perfect, but it will hold together and work. Anything more than that is more work than I feel necessary. Cheers, tedd -- --- http://sperling

Re: [PHP] Accepting Credit Card Payments

2009-05-20 Thread tedd
ion public, then you have big-time problems. That's something you should consider in your bidding. Good luck, 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] -less layouts; Ideas welcome

2009-05-21 Thread tedd
n any event, I wouldn't mind seeing the php that creates your calendar. I'm working on a project at the moment where I need to review week, month, two-month, and three-month displays. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com

[PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread tedd
At 11:48 AM -0600 5/21/09, Weston C wrote: On Thu, 2009-05-21 at 09:54 -0400, tedd wrote: My thoughts are -- my understanding the reason why tables have received such bad-press is that designers have abused tables in holding designs together with nested tables AND in doing so made it

[PHP] Legal $_SESSION names

2009-05-22 Thread tedd
same name may cause problems, such as: $myvar = $_SESSION['myvar']; Regardless of what anyone may say to the contrary, it doesn't work everywhere. I found that out the hard way. The fix is simply to use a different name for the variable, such as: $my_var = $_SESSION[

Re: [PHP] Legal $_SESSION names

2009-05-22 Thread tedd
At 4:52 PM +0100 5/22/09, Ashley Sheridan wrote: On Fri, 2009-05-22 at 11:30 -0400, tedd wrote: Hi gang: While we're discussing what's legal in css, here's a couple of things I've found about sessions. I found that starting a session with a number doesn't w

Re: [PHP] How to create an intermediary page between two pages

2009-05-23 Thread tedd
rm. When the user clicks submit, then $step = $_POST['step'] will equal 1 and process the data submitted via a switch or if statement. If everything is Okay, then continue to the next part. If not, then set $step=0 and start over again. Some of my forms have up to ten steps

Re: [PHP] Legal $_SESSION names

2009-05-23 Thread tedd
At 2:25 PM +0100 5/23/09, Stuart wrote: 2009/5/22 tedd : > Regardless of what anyone may say to the contrary, it doesn't work everywhere. I found that out the hard way. The fix is simply to use a different name for the variable, such as: $my_var = $_SESSION['myvar'];

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-23 Thread tedd
r a week... yes I'm still shaking from withdrawal ;) Sorry about the funeral -- I hope there was nothing seriously wrong. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] How to assign eval() to variable?

2009-05-23 Thread tedd
message I was replying to did not adequately frame my comment. And don't let it happen again. :-) Without Rob pointing it out I would have never noticed. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http:

Re: [PHP] How to create an intermediary page between two pages

2009-05-23 Thread tedd
At 4:34 PM +0200 5/23/09, Moses wrote: Dear Folks, Thanks Tedd for the reply. Do you have a simple example to ilustrate your great idea. Thanks. Moses: It's not a great idea, just a simple solution to a common problem -- see here: http://www.webbytedd.com/b3/step-example/ Cheers,

Re: [PHP] templating engine options

2009-05-24 Thread tedd
css, client-side javascript enhancements unobtrusively, and use server-side php/mysql to create secure and accurate function to generate the proper html and deliver desired content. I can understand someone wanting to simplify their work, but exchanging one problem for another doesn't cut

Re: [PHP] templating engine options

2009-05-24 Thread tedd
hire somebody to question every statement it make - (for some reason Mr Sperling comes to mind - question me!) I'm not sure what my father has to do with this (Mr Sperling), but while I (tedd) may be good at understanding the basics of separation of languages (many years of css), I am way

Re: [PHP] templating engine options

2009-05-24 Thread tedd
y other web language into my work. They design and I program -- that's the layers of abstraction I deal with. Cheers, tedd * Granted, sometimes I have clients who won't allow me to do what's best for them because they know programming much better than I -- they just have me program b

Re: [PHP] templating engine options

2009-05-25 Thread tedd
provided your head can do the deed. 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] templating engine options

2009-05-25 Thread tedd
x27;ve never taken advantage of anyone. It's a good way to live. 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] templating engine options

2009-05-26 Thread tedd
d you prepare a simple example of what you are saying? I know when I'm trying to explain a complex concept to someone I usually can reduce it down to the basics to demonstrate. As it is right now, I get some of what you are saying and then in the next line you lose me. Thanks for your

Re: [PHP] templating engine options

2009-05-26 Thread tedd
At 8:13 PM +0100 5/25/09, Stuart wrote: I too have had an off-list discussion with Nathan on this topic, and a productive one at that. -Stuart Great! Now you guys are having a three-some without me. :-) While I wasn't getting it, I was trying. Cheers, tedd -- --- http://sperlin

Re: [PHP] Zebra Striped Table Example

2009-06-04 Thread tedd
27;background:#eee'); Check out the full example code at http://raxanpdi.com/zebra-striped-table.html Best regards, __ Raymond Irving Raymond: A little late to reply, but your example doesn't work for me. However, this does: http://webbytedd.com/b/color-rows/ Cheers, tedd

Re: [PHP] formatting - design question

2009-06-04 Thread tedd
ook uniformly throughout your site and then stick with it. There's really no good reason to keep changing things throughout a site. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] formatting - design question

2009-06-04 Thread tedd
At 3:58 PM -0400 6/4/09, PJ wrote: tedd wrote: > Style sheets are meant simplify things so decide on how you want things to look uniformly throughout your site and then stick with it. There's really no good reason to keep changing things throughout a site. Cheers, tedd Maybe

Re: [PHP] formatting - design question

2009-06-05 Thread tedd
At 4:54 PM -0400 6/4/09, PJ wrote: tedd wrote: > That's simply an example of not thinking things out before you write the code. First you figure out a layout, then you populate it. You don't pick a > layout, populate it and then change the layout. > > If only it

Re: [PHP] formatting - design question

2009-06-05 Thread tedd
At 10:23 AM +0100 6/5/09, Peter Ford wrote: PJ wrote: > tedd wrote: >> First you figure out a layout, then you populate it. You don't pick a >> layout, populate it and then change the layout. >> If only it were that simple. When one is developing, one is alwa

Re: [PHP] PHP Graphing Libraries...?

2009-06-05 Thread tedd
are either limited, lack documentation, or don't allow plotting of points for multiple entities within the same graph. Can anyone make any quality suggestions? Best, Michael Michael: All sorts of stuff out there -- check out GDGraph Here's an example: http://webbytedd.com/ccc/ch

[PHP] php applications

2009-06-08 Thread tedd
Hi gang: I've heard that php can be used for more than web programming, but I am not aware of specifically how that can be done. So, let me ask directly -- can php be used to create a Mac Application? If so, how? Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] php applications

2009-06-08 Thread tedd
At 11:49 AM -0400 6/8/09, Daniel Brown wrote: On Mon, Jun 8, 2009 at 11:48, tedd wrote: Hi gang: I've heard that php can be used for more than web programming, but I am not aware of specifically how that can be done. So, let me ask directly -- can php be used to create a Mac Applic

[PHP] key for in_array()

2009-06-08 Thread tedd
== $var) { // then I know what the key would be. } } But is there a simpler way using in_array()? 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] php applications

2009-06-10 Thread tedd
one most logical way to solve any problem. We all shoot at the target and it should come to no surprise that our shots are grouped around a comment goal. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.p

Re: [PHP] php applications

2009-06-10 Thread tedd
At 8:53 AM -0400 6/10/09, Daniel Brown wrote: On Wed, Jun 10, 2009 at 08:37, tedd wrote: Beside, this is how languages evolve. There is no job that any tool is designed for. The "job" is our current perception of the task at hand and that is always changing. That's

Re: [PHP] php applications

2009-06-10 Thread tedd
those gag reflexes under control... call me!! *wink wink* *nudge nudge* Cheers, Rob. Get a room. :-) 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] Preventing XSS Attacks

2009-06-11 Thread tedd
two variables, one for display output to user, the other for use in the database? Thanks Ash Ash: I wouldn't use $_REQUEST. If you know the request method then use it. There can be problems using $_REQUEST. Cheers, tedd -- --- http://sperling.com http://ancientstones.com htt

Re: [PHP] how to pass a number through href url?

2009-06-14 Thread tedd
the php manuals. Instead, you would rather add to the noise of this list than look. That's unfortunate. If you're not going to try to help yourself, then why should anyone help you? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- P

Re: [PHP] Search/Replace in entire database?

2009-06-15 Thread tedd
that product does so via the product's id and not the product's name. As such, each look-up for the product name requires first to know the product's id and then pull out the name associated with that id. In any event, a little more work at the start saves tons later.

Re: [PHP] Periodic Actions in PHP?

2009-06-15 Thread tedd
done here: http://webbytedd.com/b/timed-php/ The only addition is that I use ajax. The operation is outlined there. If you need additional details, just ask. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.ph

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread tedd
t. If you are looking to understand what basic html does, try this: http://www.htmlcodetutorial.com/ I often use this site to refresh my failing memory about html stuff. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing L

Re: [PHP] populate form input option dropdown box from existingdata

2009-06-16 Thread tedd
things, simply pull out the data from the POST array via the array's name. You can see how this is done via the above links. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Form Process Question

2009-06-16 Thread tedd
r anything); 2) In case that the user does not allow javascript to work, then you have to plan for that and do it on the server-side anyway for graceful degradation. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

[PHP] Re: Totally weird behavior trying to download a Mac DMG file

2009-06-16 Thread tedd
;s always there. I can't wait for the next update so Apple can fix this bonehead error. 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] Disclaimer

2009-06-17 Thread tedd
Keep away from pets and out of reach of children. If you experience loss of eyesight seek medical attention immediately. Keep extremities away from spinning blades. Absolutely not responsible for anything at anytime for any reason whatsoever. Anyone else? Cheers, tedd -- --- http://sp

Re: [PHP] sloppiness & stupidity

2009-06-17 Thread tedd
hp1.net/b/form-checkbox/index.php http://php1.net/b/form-checkbox1/index.php You know, part of this Q&A thing is to read/review what's been provided for you and respond to it. Remember, we're trying to help you, not the other way around. Cheers, tedd -- --- http://sperling.co

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

2009-06-17 Thread tedd
fter sort of $d: $a = [grape, orange, apple, banana] $b = [198, 150, 100, 2111] $c = [purple, orange, red, yellow] $d = [11, 50, 100, 300] Is there a slick way to do that? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mai

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