Re: [PHP] Replacing accented characters?

2010-01-28 Thread Marcus Gnaß
On 28.01.2010 03:40, Paul M Foster wrote: On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above them, with the regular e and u characters. FWIW, those two

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Marcus Gnaß
Tony Marston wrote: You cannot do this in a separate class as it requires action in both the presentation (UI) and data access layers, and a single class is not allowed to operate in more than one layer. You can, but you shouldn't if you want to write your classes according to the MVC

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Marcus Gnaß
aveev wrote: ? function generate_id($num) { $start_dig = 4; $num_dig = strlen($num); $id = $num; if($num_dig = $start_dig) { $num_zero = $start_dig - $num_dig; for($i=0;$i $num_zero; $i++) { $id =

Re: [PHP] header problem

2009-09-10 Thread Marcus Gnaß
A.a.k wrote: is there any alternative to header() for redirect users? As far as I know there isn't. Is the header-error the first error on the page? If not, the other error message itself is the reason for the header-error and will be solved if you solve the other error. -- PHP General

Re: [PHP] SQL help?

2009-05-18 Thread Marcus Gnaß
Skip Evans wrote: Hey all, I have a SQL requirement I'm not quite sure how to compose. I have two tables, shows, and shows_dates. It's a one to many relationship where there is a single entry in shows and multiple entries in shows_dates that list each date and time for a play production

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Tom Worster wrote: there's a control structure i wish php had: a simple block that you can break out of, e.g. As Maarten pointed out you could use a function. Another alternative is to use Exceptions which might be the most proper way to do it. -- PHP General Mailing List

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Robert Cummings wrote: On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote: Tom Worster wrote: there's a control structure i wish php had: a simple block that you can break out of, e.g. As Maarten pointed out you could use a function. Another alternative is to use Exceptions which might

Re: [PHP] speaking of control structures...

2009-05-06 Thread Marcus Gnaß
Robert Cummings wrote: On Wed, 2009-05-06 at 22:23 +0200, Marcus Gnaß wrote: Robert Cummings wrote: On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote: Tom Worster wrote: there's a control structure i wish php had: a simple block that you can break out of, e.g. As Maarten pointed out

Re: [PHP] php forms - select menu selected behavior

2009-04-30 Thread Marcus Gnaß
Troy Oltmanns wrote: I have the code below being used to rifle through a list of available categories and create select options for them. The code is being used to query the database and compare the product category to the current iteration, if there's a match, then add selected code so the

Re: [PHP] A Tool For Building PHP Web Apps

2009-04-10 Thread Marcus Gnaß
Paul M Foster wrote: On Fri, Apr 10, 2009 at 09:01:14AM -0400, Bob McConnell wrote: From: Paul M Foster Here's a hairbrained idea I was kicking around. I object to the idea of including 15 or 30 files in a PHP application just to display one page on the internet. It

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Marcus Gnaß wrote: like with programming questions in general. Should have read my own post before sending! ;) Should be programming languages! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a

Re: [PHP] PHP OOP

2009-02-10 Thread Marcus Gnaß
Paul M Foster wrote: On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: As a side note, I think students should learn a language like C before learning something like Perl, Python or PHP. Having to deal with defining/declaring variables and their storage methods before use I think makes

Re: [PHP] maybe we could all?

2009-02-09 Thread Marcus Gnaß
Nathan Rixham wrote: Project: PHP Common Objects and Datatypes Has anything been setup for project COD-pieces yet? I like this name! ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] maybe we could all?

2009-02-09 Thread Marcus Gnaß
Nathan Rixham wrote: Marcus Gnaß wrote: Nathan Rixham wrote: Project: PHP Common Objects and Datatypes Has anything been setup for project COD-pieces yet? I like this name! ;) Actually, yes it has - the project, well working group, has been called voom. Sounds fine too! ;) If you're

[PHP] colored text in images

2006-03-24 Thread Marcus Gnaß
Hi list! I like to generate a larger image from different tiles. Each tile should have a text on it which should be red for better readability. I figured out how to compose the larger image but got stuck when to color the text. I tried the following code: $img = imagecreate($w * 100, $h *