Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute:

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 5:32 PM + 2/22/10, Ashley Sheridan wrote: On Mon, 2010-02-22 at 12:33 -0500, tedd wrote: At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: >

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread tedd
case 1: return 'bar'; } } What should the return type be? -- Daniel Egeberg It can be anything you want to test for -- check out: is_int(); is_nan(); is_float(); is_long(); is_string(); IOW, is_whatever(); Cheers, tedd -- --- http://sperling.com ht

Re: [PHP] PHP / mySQL Project...

2010-02-23 Thread tedd
E that confined me to a hospital bed for three weeks, yet I worked almost every day with my laptop. Some clients understand and some don't. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread tedd
gardless of the method of data collection. 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] When to use namespaces

2010-03-01 Thread tedd
ughts, Auke van Slooten Muze (www.muze.nl) Tie it to your url, such as: ripcord.muze.nl That would be sufficient and unique as a namespace under your control. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://

Re: [PHP] Best os shopping cart

2010-03-03 Thread tedd
site, simply a cart to power a subscription sign-up page. Thanks for the advice. Haig Haig: A subscription sign-up page? That doesn't sound like a shopping cart problem. You mean something like this: http://webbytedd.com/b/sub-email/ Cheers, tedd -- --- http://sperling.com

Re: [PHP] Want to learn to work with Zend Framework?

2010-03-05 Thread tedd
At 8:25 AM + 3/5/10, Ashley Sheridan wrote: If it's spam, it's the first I've seen that actually has something to do with PHP and not drugs, money or sex! Thanks, Ash You mean that PHP is not drugs, money, or sex? What's the purpose then? Cheers, tedd -- ---

[PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread tedd
d you guys do? So, what would you guys do? Keep in mind that this survey must evaluated in terms of answers, such as "Of the ones who answered e1 as 1 how did they answer e2?" If there is something wrong with my preference, please let me know. Thanks, 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: PHP in HTML code

2010-03-16 Thread tedd
t -- that's your choice -- but your decision is also a demonstration to your client/employer/peers as to your desire to produce the "best" possible code. I look at code containing "tables and embedded styling for presentation -- "This must be old code OR the program

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
At 8:55 PM -0400 3/16/10, Adam Richardson wrote: That said, I'm not taking exception with those who don't use the short tag, only with those who say I shouldn't. Exception or not, it's still your choice and using short tags can cause problems. My view, why create problems when there is a sol

Re: [PHP] fresh look at storing variables in MySQL [Solution]

2010-03-17 Thread tedd
At 1:10 PM -0500 3/13/10, tedd wrote: I just completed writing a survey that has approximately 180 questions in it and I need a fresh look at how to store the results so I can use them later. I decided to store all questions/answers pairs in MySQL as individual records. Now I could have

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
d can be turned on and off from the php.ini configuration file. As such, while some people find short tags and ASP style tags convenient, they are less portable, and generally not recommended. " +1 Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-18 Thread tedd
ble. 3) Key1 and Key2 were simply values that were intended to tie the question/answer pairs together into a single event (i.e., a vote). 4) Answer -- what we are after. This format lends itself well to analyses using MySQL. Cheers, tedd -- --- http://sperling.com http://anci

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
yself first and solve the client's problems second. I also realize that I have the privilege of doing so because my needs are few. I probably wouldn't do well in a production oriented environment. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earths

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
u are free to do whatever you want. I don't consider any of this discussion (on either side of the argument) as "religious' or "ranting" -- it's simply a discussion. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread tedd
er that difference and build in an exception. I've found that M$ always has a better idea, even if they are the only ones who think so. 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 determine mime type of file these days?

2010-03-18 Thread tedd
http://php/manual/en/ref.fileinfo.php Broken. 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] blog design issue...

2010-03-20 Thread tedd
I go the other route and do 1 database field for each category? This is going to be a small blog to start, but I guess I should always be looking at performance, security, & maintainability right? I did read the post that tedd put up about looking at storing variables differently and am

Re: [PHP] Session Variable Problem

2010-03-21 Thread tedd
7;s a way to stop that. As far as using strip_slashes() and htmlentities() I wait until I am going to use the variables in some manner and then clean/scrub them all at one time. That makes the process simpler for me -- plus I can then keep all my security checks in one location. Cheers,

Re: [PHP] Session Variable Problem

2010-03-21 Thread tedd
p All the code is there. Plus, it will give you a way to go from page to page without leaving the gathering page. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread tedd
At 12:59 PM -0400 3/22/10, Robert Cummings wrote: You have a space someplace... most like left after some anal coder decided it was a good idea to close all their think about trailing space in the files >:) Cheers, Rob. That may be, but I always add fiber to my coding. Cheers, t

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread tedd
Hi gang: When I'm confronted with a large number of emails to read under one subject (like this one), I put on the "Robert, Stuart, Brown" Filter. As such, I only read their post and everything gets to the point quicker and makes more sense. Cheers, tedd -- --- http

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread tedd
At 6:34 PM -0700 3/24/10, Daevid Vincent wrote: -snip- You didn't used to be so difficult, what changed? For me it's preferable to select windmills that are in my best interest to tilt. Otherwise, what's the point? Cheers, tedd -- --- http://sperling.com http://ancients

RE: [PHP] Top vs. Bottom Posting

2010-03-26 Thread tedd
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > > You didn't used to be so difficult, what changed? (look I'm bottom posting!) I wasn't trying to be difficult! Honest! Yousif hijacked my thread to tell me to bottom post. I did the rig

Re: [PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-27 Thread tedd
tp://webbytedd.com/bb/pdf/ 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 query not working!

2010-03-31 Thread tedd
base. In short, never trust anything coming from client-side. Here's a reference on the subject: http://en.wikipedia.org/wiki/SQL_injection There are many others. 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 GUI library/package

2010-03-31 Thread tedd
ate a "stand-alone" application from my php scripts, but I am clueless as to how to do this. If anyone has done this on a Mac, I would be very interested in knowing how you did it. Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PH

Re: [PHP] Re: using UID in DB

2010-03-31 Thread tedd
of servers with millions of entries per second, then my method would not be a solution. As such, the solution should be tailored to the 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] Re: using UID in DB

2010-03-31 Thread tedd
At 11:08 AM -0700 3/31/10, Tommy Pham wrote: On Wed, Mar 31, 2010 at 10:23 AM, tedd wrote: At 5:56 PM -0700 3/30/10, Tommy Pham wrote: On Tue, Mar 30, 2010 at 2:27 PM, Nathan Rixham wrote: nope never been able to find any significant advantage; and thus ended up using http uri'

[PHP] GetElementByClass?

2010-04-03 Thread tedd
I can load the files and parse out what is between the tags, but I was hoping for a "GetElementByClass" way to do this. So, is there one? Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.ne

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
At 8:11 AM -0600 4/3/10, Peter Pei wrote: On Sat, 03 Apr 2010 08:58:44 -0600, Ashley Sheridan wrote: On Sat, 2010-04-03 at 10:29 -0400, tedd wrote: -snip- Now, I can extract each question by using javascript -- document.getElementById("question").innerHTML; Somejavascr

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
quot;, "\n", "\r", "\x0B", "\x0C"); $words = array(); $all_words = explode(' ', $text); { $line = str_replace($space, '', $line); if (strlen($line) > 0) { $words[] = $line; } } $text = implode(' ',$word

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
he folling will work: document.getElementById("question").innerHTML; While you are using a getElementById, which returns an ID, but adding .innerHTML will return the class value. Try it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
At 5:16 PM +0200 4/3/10, Piero Steinger wrote: Hi You could replace the "class" with "id" and then go on with JavaScript. A possible better way are regular expressions... Greetz Piero I can go with javascript "as-is" (what I showed) and don't have t

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
not step through the questions like I would have to do using javascript to approve (trigger) each step. But my main reason for posting was to see if PHP had DOM operators like javascript. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
At 9:14 AM -0600 4/3/10, Peter Pei wrote: Somejavascript engine already support GetElementByClass, for example Opera does. My example shows how, namely: document.getElementById("question").innerHTML; will return the value within the class. Cheers, tedd In your original post

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
At 12:18 PM -0400 4/3/10, tedd wrote: At 8:14 AM -0600 4/3/10, Peter Pei wrote: No javascript's getElementByID() won't work here. As "question" is a class, not an ID. But like what was mentioned here, you can use getElementByClass() with Opera, and that will work. Sort o

Re: [PHP] GetElementByClass?

2010-04-03 Thread tedd
At 10:03 AM -0600 4/3/10, Nathan Nobbe wrote: -snip- code Your code worked like a charm. Thanks. Now, I can extract each question by using javascript -- document.getElementById("question").innerHTML; tedd, are you slipping? i thought you were searching by the class attr

Re: [PHP] Re: imagecopyresize

2010-04-06 Thread tedd
Hi: Here's my code for doing watermarks: 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] Updating HTML on page

2010-04-06 Thread tedd
the page with 2 of 5 . etc., etc. Ideally without refreshing the page each time. Is this where I need to figure out Ajax and incorporate it with PHP? Exactly. Here's an example: http://webbytedd.com/b/timed-php/ Cheers, tedd -- --- http://sperling.com http://ancientstones.co

[PHP] Sort two coupled arrays

2010-04-07 Thread tedd
of Array 1 while being coupled to index of Array 2. In other words, the order of Array 2 depends upon the order of Array 1 -- the two arrays are coupled. I've solved this problem, but my solution is pretty lame. There has to be a better/slicker way. Suggestions? Cheers, tedd --

Re: [PHP] Sort two coupled arrays {my solution]

2010-04-07 Thread tedd
''); print_r($final); echo(''); echo(""); I was hoping that someone might present something clever. 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] Sort two coupled arrays {my solution]

2010-04-08 Thread tedd
ending upon their values. Thus far, my solution is the only one that 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] Sort two coupled arrays {my solution]

2010-04-08 Thread tedd
'Web site' => 31, 'Text Message' => 31 ) logically, the items are your key but not the count of votes That's the ticket. The solution is pretty simple now that we understand the nature of the problem. :-) Andrew Andrew: Half the solution is understanding the problem.

Re: [PHP] Sort two coupled arrays [my solution]

2010-04-09 Thread tedd
At 10:26 AM -0400 4/8/10, Robert Cummings wrote: tedd wrote: At 8:28 AM -0400 4/8/10, Andrew Ballard wrote: On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun wrote: > rsort(array_combine(array2, array1)); you should expect array( 'Personal Email' => 75, 'USPS mail'

Re: [PHP] PHP & MYSQL sorting

2010-04-12 Thread tedd
x27;s another idea using jQuery: http://webbytedd.com/jquery/sortable-table/ 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] Inserting into multiple tables

2010-04-12 Thread tedd
ceipt (sales table) when you can simply record the items' ID. None of the above requires some special way to inserting data into multiple tables -- you just record the sales. Sales table Sales ID -- Customer ID -- Item ID -- and probably the date. 1234 -- 6789 -- 101112131415

Re: [PHP] Solution

2010-04-13 Thread tedd
, state, zip) VALUES('$first_name', '$last_name', $street', '$town', '$state', '$zip')"; $result=mysqli_query($dbc, $query) or die('Error querying database.'); include(closedb.php); I don't see any reason to separate the attr

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread tedd
he user shut down his browser, or has the user simply clicked the submit button and the page has been refreshed. IOW, how has the user left the page? So, OP explain what you are trying to do? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] Basic switch statement

2010-04-13 Thread tedd
name of the textbook you are using? And, if there is a syllabus, can I have a copy? Thanks, 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] Saving form data into session before leaving a page

2010-04-13 Thread tedd
At 12:40 PM -0400 4/13/10, Robert Cummings wrote: Dan Joseph wrote: On Tue, Apr 13, 2010 at 12:19 PM, tedd wrote: So, OP explain what you are trying to do? Cheers, tedd Sorta looks to me like he's in a situation where users are fleeing the form, and wondering why its not filled in

Re: [PHP] Solution

2010-04-13 Thread tedd
At 12:26 PM -0400 4/13/10, Gary wrote: Tedd I had four tables. name, (fname, lname) address(street, town, state, zip), contact(phone, fax, email), comments (comments). It was done this way because it is strictly a learning exercise. I had never created a DB with multiple tables, so I wanted

Re: [PHP] Solution

2010-04-13 Thread tedd
At 3:09 PM -0400 4/13/10, Andrew Ballard wrote: On Tue, Apr 13, 2010 at 2:50 PM, tedd wrote: For example, a user has name, address, height, weight, color, language, etc. Those things can be listed in a single table. And now for the universal DBA answer - it depends. There are cases where

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
n run the distance. I don't think those types of logic puzzles do much to measure anything other than people's ability to solve logic puzzles. IMO, it's interviewers "leap of faith" to think logic puzzles are a good indicator of programming prowess. To many of u

Re: [PHP] Basic switch statement

2010-04-14 Thread tedd
ver nor as cryptic as others, but it's always easier to read and understand. 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] Basic switch statement

2010-04-14 Thread tedd
At 12:32 PM -0400 4/14/10, Robert Cummings wrote: tedd wrote: My "logic" works the other way -- when presented with a logic problem, I come up with a solution that works the way I think and I always to solve the problem presented. Perhaps my solution isn't as clever nor as cr

RE: [PHP] Array differences

2010-04-14 Thread tedd
$diff1 = array_diff($array1, $array2); $diff2 = array_diff($array2, $array1); $diff1 = array_unique($diff1); $diff2 = array_unique($diff2); $result = array_merge($diff1, $diff2); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing L

Re: [PHP] Basic switch statement

2010-04-15 Thread tedd
phpEdit version for the Mac. Currently, I use GoLive (without all the WYSIWYG bloatware), but it limitations are showing. I like Eclipse, but the learning curve is high and has more features than I need. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http

Re: [PHP] Basic switch statement

2010-04-16 Thread tedd
At 9:06 AM -0400 4/16/10, Robert Cummings wrote: It runs in a terminal! Cheers, Rob. That's not good. Airport security frowns on that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread tedd
ng or hiding it client side works just as well as redirecting to an alternative page. Michiel Paulo: I agree. Here's a working example with everything you need: http://sperling.com/examples/javascript-detection/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com ht

Re: [PHP] Zip Search

2010-04-16 Thread tedd
At 3:21 PM -0400 4/15/10, Jack wrote: Hello All, Can anyone recommend a good open source zip code search application and database? Thanks, Jack Do you mean something like this: http://php1.net/b/zipcode/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread tedd
#x27;s content for those with javascript turned off and those who have javascript turned on, can enjoy an "enhanced" version of the presentation, but not have something provided that other's can't get. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://

Re: [PHP] solution

2010-04-19 Thread tedd
> content and no js. That's the best way to go. After all, the only real way to detect Javascript is to *use* Javascript :) Michiel The best way is to *attempt* to use it thus providing progressive enhancement *if* it's there. Cheers, tedd -- --- http://sperl

Re: [PHP] Adding reCAPTCHA to form using PHP

2010-04-19 Thread tedd
r CAPTCHA on a strange graphic, then you keep visually impaired users out. That's not good. Here's an assortment of CAPTCHA's, but I think the Question CAPTCHA is the best. http://webbytedd.com/aa/assorted-captcha/ Cheers, tedd -- --- http://sperling.com http://ancientsto

Re: [PHP] Adding reCAPTCHA to form using PHP

2010-04-19 Thread tedd
At 2:10 PM -0400 4/19/10, Andrew Ballard wrote: On Mon, Apr 19, 2010 at 12:50 PM, tedd wrote: At 12:21 PM -0400 4/19/10, Ernie Kemp wrote: Need help with reCAPTCHA. Never installed it before. When Submit is clicked the "quoterequest-redirect.php" is run but I think it would

Re: [PHP] How to do i18n better?

2010-04-19 Thread tedd
/ Click the flag of your choice. However, I have no idea of the quality of the translation. 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] Date Math

2010-04-20 Thread tedd
or two line option. Thanks! Floyd I this will work, but the question of what constitutes a month might come into play. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread tedd
questions if i don't find any answer already on this list. Cheers from Switzerland Welcome Nick. Do you own a bank? :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] replying to list (I give up)

2010-04-21 Thread tedd
replies "on topic" and more readable. I'm sorry that you feel that doing so is *so tedious* that you are going to "give up", but consider the effort that is put forth by those answering you you should reconsider how much effort you are willing spend to make this l

[PHP] CD, DVD, and Blu-Ray (Not PHP)

2010-04-21 Thread tedd
re than CD, isn't that right? 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] Math Question....

2010-04-23 Thread tedd
, 27... and so on. The group size "solution" would be a number with a zero remainder OR with a remainder closest to your group size. That would be my first blush solution. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP Gener

[PHP] Remote Key Question

2010-04-23 Thread tedd
bio Now here's the problem each articles will have one, but perhaps more authors -- so how do I record the authors in the article table? As it is now, I use the remote key for each author and separate each key by a comma in the author field of the article table. For example: author table:

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread tedd
Vista. Thanks, Ash Or the next wonderful thing, whatever that may be from M$. As I saw in a recent cartoon (with a W.C. Fields imitation) "Yes, my little chickadee with a couple of shots of bourbon and if you squint your eyes just right, System 7 looks a lot like Mac OS X".

Re: [PHP] Structured PHP studying

2010-04-25 Thread tedd
u really have two things to consider: 1) What you created; 2) and the technology of the time. 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] What's your game? (X-PHP)

2010-04-25 Thread tedd
c.). My gamer tag is "special tedd" What's your game? 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] getting content exceprts from the database

2010-04-26 Thread tedd
I can to keep html out of my database. In my view, the database is there to deliver content not code. I have entire sites that spring from a single index.php page that is loaded with different content depending upon what the user wants -- the site looks big, but consists of a sin

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
with every script that has access to the database. That way I can turn on/off error reporting and make alterations as to how to handle errors in one file. The difference between "development" and "live" is a simply a change in one script. Error handling is almost an art form.

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
got pissed when they thought the computer could so easily beat them. But, if the computer took more time to beat them, then that was more acceptable and the end-users were less inclined to throw the game into a wall. So with respect to software engineering, how users view what's going

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
getting married. 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] Error handling strategies (db related)

2010-04-27 Thread tedd
usability studies. Usability studies are important in software and web design. If developers (and clients) read those books, we would have less problems dealing with users. 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] Error handling strategies (db related)

2010-04-27 Thread tedd
At 4:23 PM +0100 4/27/10, Nathan Rixham wrote: I'm still shocked you guys are still writing code that has errors in it, what's worse is you know about the errors, and instead of fixing them you're just telling the user about it! :p Here's my code that doesn't contain errors: Cheers, ted

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
ggest. 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 quiz script/tutorial

2010-04-27 Thread tedd
cord with ties to the "test", "question" and responder. The database design takes some thought to set up correctly. In the end, there is not really anything that hard about this, it's just collecting information from the user via a form and storing that information

Re: [PHP] Security/Development Question

2010-04-29 Thread tedd
a database and that is NOT good. 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] Two color rows in table inside while iteration

2010-04-29 Thread tedd
at. Thanks!, Juan Juan: Everyone has done this at one time or another -- this is my solution. http://webbytedd.com/b/color-rows/ Plus, it validates and keeps things simple. 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] Two color rows in table inside while iteration

2010-04-29 Thread tedd
At 11:01 AM -0300 4/29/10, Juan Rodriguez Monti wrote: 2010/4/29 tedd : At 8:29 AM -0300 4/28/10, Juan Rodriguez Monti wrote: Hello Guys, I would like to implement a two color row table for some queries that I'm doing. I use PHP to query a DB, then I use while to print all its re

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
At 10:34 AM -0400 4/30/10, Paul M Foster wrote: On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: > Please critically review my example. +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regularly u

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
above embedded code and the client says "Hey, let's change the color of that table" -- then you are going to have to change 100 pages of code whereas if you followed "best practices" then you would change only one rule in css. Cheers, tedd -- --- http:/

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread tedd
At 7:26 PM +0100 4/30/10, Ashley Sheridan wrote: On Fri, 2010-04-30 at 13:59 -0400, tedd wrote: At 4:37 PM +0200 4/30/10, Jay Ess wrote: Paul M Foster wrote: +1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his cod

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
ason for that? And I don't see where he provides the values for $newWidth and $newHeight used in the resample. Here's a simpler example: http://webbytedd.com/b/thumb/ Just add the png type to the header content. 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] Object or such for building a directory tree?

2010-05-01 Thread tedd
possible to do this in PHP, I was thinking that javascript might provide a better functional solution (i.e., client-side with less trips to the server). Namely have PHP create the array and then have javascript show it. This is what I found: http://labs.abeautifulsite.net/projects/js/jquery

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
you expect us to help you but you won't accommodate a simple, and appropriate request, then don't expect any more help from me. bye! tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread tedd
At 3:18 PM -0400 5/1/10, Gary wrote: As far as the whole "top posting". I have been posting on this board for 2 years (give or take), in fact have had a number of exchanges with tedd, (so I was a little surprised at his response). I have never heard the term top posting, I had not

[PHP] Re: Object or such for building a directory tree?

2010-05-02 Thread tedd
At 1:49 AM +0200 5/2/10, Michelle Konzack wrote: Hello tedd, Am 2010-05-01 11:54:45, hacktest Du folgendes herunter: Now on to your problem. You want to take a multidimensional array that contains the names of directories and names of the files contained therein and show them in a file tree

Re: [PHP] Two color rows in table inside while iteration [X-PHP]

2010-05-02 Thread tedd
At 11:53 PM -0400 5/1/10, Paul M Foster wrote: On Fri, Apr 30, 2010 at 01:52:25PM -0400, tedd wrote: > All the code I provide on this list and on my various web sites is for free for anyone, except for "governments" (i.e., local, state, federal, other), to use, review, and/

Re: [PHP] Inserting rows with missing IDs

2010-05-03 Thread tedd
d idea to do that and you should rethink how you pull your data. 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] Need login suggestions

2010-05-03 Thread tedd
r whatever clearances the users of the scheme have. I hope this gives you a better idea of how to handle this type of 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] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread tedd
old browser wars. Of course, I could tell you what I really think, but I don't want to be too abrasive. :-) 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] Inserting rows with missing IDs

2010-05-05 Thread tedd
rs (unless it's a number table!) best, nathan And if they really want just a sequential number ID that they DO NOT depend upon, they can always drop the id from the table and then recreated it -- that way it will be automatically renumbered. Cheers, tedd -- --- http://sperling.com h

<    5   6   7   8   9   10   11   12   13   14   >