Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
-general@lists.php.net Sent: Thursday, October 05, 2006 4:55 AM Subject: Re: [PHP] Help on objects [with reply] Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Undoubtedly. He could also use the PEAR DB abstraction layer.

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/4, Deckard [EMAIL PROTECTED]: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and that is an

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, October 05, 2006 11:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: Martin Alterisio To: Satyam Cc: Deckard ; php-general@lists.php.net Sent: Thursday, October 05, 2006 3:50 PM Subject: Re: [PHP] Help on objects 2006/10/5, Satyam [EMAIL PROTECTED]: I've seen you already had a good answer on the errors

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: - Original Message - *From:* Martin Alterisio [EMAIL PROTECTED] *To:* Satyam [EMAIL PROTECTED] *Cc:* Deckard [EMAIL PROTECTED] ; php-general@lists.php.net *Sent:* Thursday, October 05, 2006 3:50 PM *Subject:* Re: [PHP] Help on objects 2006/10/5

Re: [PHP] Help on objects

2006-10-04 Thread Penthexquadium
On Thu, 05 Oct 2006 02:47:59 +0100, Deckard [EMAIL PROTECTED] wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] Help on objects

2006-10-04 Thread Satyam
I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and that is an action, which is solved by a statement,

Re: [PHP] Help converting C to PHP

2006-09-23 Thread Richard Lynch
On Fri, September 22, 2006 7:40 pm, Rory Browne wrote: Fair enough. Prime Number Script Competition ( for Bragging Rights ). I challenge the readers of this list to produce the necessary code to find the lowest prime number higher than a certain inputted number. The script must be web

Re: [PHP] Help converting C to PHP

2006-09-23 Thread Rory Browne
Whoops - sorry replied directly to Richard instead of to the list. Submission process is simply to post to the list. It's probably a good idea ( and acceptable ) to just post an SHA1(MD5 for this purpose is compromised) hash of your code before the deadline, and submit your actual code shortly

RE: [PHP] Help converting C to PHP

2006-09-22 Thread Jay Blanchard
[snip] Codegolf... heh.. nice little twist. [/snip] At least we weren't asked to help someone write his homework. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000

Re: [PHP] Help converting C to PHP

2006-09-22 Thread tedd
At 2:38 PM +0200 9/22/06, Rory Browne wrote: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes is the winner. I personally don't think this is a very healthy contest. It

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Tom Atkinson
Martin Alterisio wrote: 2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a

Re: [PHP] Help converting C to PHP

2006-09-22 Thread php
Hello all, I personally don't think this is a very healthy contest. It discourages comments, and use of whitespace to make code readable. Anyway... as you say, it would be nice to have a contest that rewards readability and maintainability... but, how can we messure that qualities in this

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Tom Atkinson [EMAIL PROTECTED]: Martin Alterisio wrote: 2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Thu, September 21, 2006 9:32 pm, Curt Zirzow wrote: On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;)

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Fri, September 22, 2006 11:59 am, Martin Alterisio wrote: Anyway... as you say, it would be nice to have a contest that rewards readability and maintainability... but, how can we messure that qualities in this type of games? If you think of the Open Market of software out there as the game

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
That aside, I think that it would be very beneficial to the community as a whole if a contest was started that encouraged readability and good practices. The scoring and judging could be done by a panel, but I think that it would be more fun if the community itself was able to vote on various

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Richard Lynch
On Fri, September 22, 2006 7:40 pm, Rory Browne wrote: The script must be web based, and ask the user to enter a number. The script must then calculate the lowest Prime Number above that number. I would like to have one point clarified: By above that number do you literally mean or would =

Re: [PHP] Help understanding/debugging the following script:

2006-09-21 Thread Robert Cummings
On Thu, 2006-09-21 at 19:26 +0200, Martin Bach Nielsen wrote: Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
Yes, it is. Kevin Waterson wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- PHP General Mailing List

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: heh.. nice little twist. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p)

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
pi() does not give me enough decimal places, I need the first 1000. Curt Zirzow wrote: On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3;

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Christopher Watson
Definitely looks like a grouping and/or precedence problem. Wish I had more time to examine it. Fine-tooth those parens again. -Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help - outputting a jpeg

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I just get all the binary data output ? include(includes/config.php); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:'

Re: [PHP] Help with dynamic radio buttons

2006-07-24 Thread Dimiter Ivanov
On 7/22/06, Chris Grigor [EMAIL PROTECTED] wrote: Afternoon all I need some help here with a problem on dynamic radio buttons. I have a script that calls a database for a list of questions. The questions are returned and each question needs to have 5 radio buttons assigned to it. The radio

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread David Tulloh
The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying = $existing ~$mask; # = 176 = 1011 Combine them together

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm missing something obvious... The problem: A function

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
David Tulloh wrote: The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying = $existing ~$mask; # = 176 =

RE: [PHP] Help with some clever bit operations

2006-06-13 Thread Ford, Mike
On 13 June 2006 10:31, Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm missing something obvious...

RE: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:32, Ford, Mike wrote: On 13 June 2006 10:31, Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:22, Jochem Maas wrote: Niels wrote: Hi, I have a problem I can solve with some loops and if-thens, but I'm sure it can be done with bit operations -- that would be prettier. I've tried to work it out on paper, but I keep missing the final solution. Maybe I'm

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Niels
On Tuesday 13 June 2006 12:18, David Tulloh wrote: The example starting values $existing = 181; # = 10110101 $new = 92; # = 01011100 $mask = 15; # = Get the bits that will be changed $changing = $new $mask; # = 12 = 1100 Get the bits that won't be changed $staying =

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Satyam
- Original Message - From: David Tulloh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, June 13, 2006 12:18 PM Subject: Re: [PHP] Help with some clever bit operations The example starting values $existing = 181; # = 10110101 $new = 92

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Robert Cummings
On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still makes my head spin) - this is what this table is for: 128 64 32 16 8 4 2 1

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still makes my head spin) - this is what this table is for:

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Robert Cummings
On Tue, 2006-06-13 at 11:03, Jochem Maas wrote: Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the conversion stuff still

Re: [PHP] Help with some clever bit operations

2006-06-13 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2006-06-13 at 11:03, Jochem Maas wrote: Robert Cummings wrote: On Tue, 2006-06-13 at 06:22, Jochem Maas wrote: My brain needs a crutch when trying doing this kind of thing (normally I only write hex number literally when dealing with bitwise stuff - the

Re: [PHP] Help with enter key in Forms

2006-06-02 Thread Martin Alterisio
2006/6/2, George Babichev [EMAIL PROTECTED]: Awesome, thank you so much! It works! On 6/1/06, Chris [EMAIL PROTECTED] wrote: George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok. well I looked more deeply into the issue, and I noticed that PHP My Admin does recognize that there are spaces. So if I click edit on PMA, it displays everything exactly liked I typed it. So why does my program not display it? This is the code I use Then you're not

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 So why is my program not showing those spaces? On 6/1/06, Chris [EMAIL

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chris
George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it in PHP My Admin it displays 1 2 The answer is to change this: ? echo .$row['post'].

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chuck Anderson
Chris wrote: George Babichev wrote: Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it

Re: [PHP] Help with enter key in Forms

2006-06-01 Thread George Babichev
Awesome, thank you so much! It works! On 6/1/06, Chris [EMAIL PROTECTED] wrote: George Babichev wrote: Ok, I sent it to everyone and you. Now can you answer my question please? I type in 1 2 into my form in the program that i made, then when I view it, it shows 1 2 BUT if I check it

Re: [PHP] help needed with pager

2006-05-25 Thread Rabin Vincent
On 5/25/06, Ross [EMAIL PROTECTED] wrote: http://scottishsocialnetworks.org/editor.php http://scottishsocialnetworks.org/editor.phps the pager in this page works except try and choose aberdeen from the area dropdown. You should get 18 answers which is fine except when page 2 is pressed at the

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread chris smith
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not

RE: [PHP] HELP - Clean and simple

2006-05-22 Thread Jay Blanchard
[snip] I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not decleard I declear it and assign it's name by

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Rabin Vincent
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: :-) Sorry! I've been digging with this for a while now so I don't think I have the best code left. But this is what I have for the moment: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array();

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Scott Hurring
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array(); $$row[0][$row[2]] = $row[1]; } else { $$row[0][$row[2]] = $row[1]; } } IMO,

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Richard Lynch
http://php.net/isset On Mon, May 22, 2006 8:45 am, Jonas Rosling wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-16 Thread Mike Walsh
Rabin Vincent [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 5/16/06, Mike Walsh [EMAIL PROTECTED] wrote: [ ... snipped ... ] Is there a way to both display a web page and send content to be saved by the user? If someone knows of an example I could look at I'd be greatful.

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-16 Thread Richard Lynch
On Mon, May 15, 2006 10:48 pm, Mike Walsh wrote: Is there a way to both display a web page and send content to be saved by the user? Not really really, but you can sort of hack it... If someone knows of an example I could look at I'd be greatful. Send out the HTML for the stats, and bury a

Re: [PHP] Help w/ 'headers already sent' and file download

2006-05-15 Thread Rabin Vincent
On 5/16/06, Mike Walsh [EMAIL PROTECTED] wrote: I have an application which I am working on which takes a file supplied by the user via a File Upload, peforms some processing on it, then prompts the user to download a generated CSV file. What I would like to do is report some processing

Re: [PHP] Help!

2006-04-29 Thread chris smith
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote: Thanks all. Worst case scenario I can rebuild from the demo as it works (really don't want to do that). Was loathe to plaster your screens with miles of code but understand it's hard to assit without it. If you still need help..

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
Misleading to who? I own the app and am the only person who will ever use it. Rather anal. On 29/04/06, Martin Alterisio [EMAIL PROTECTED] wrote: 2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:11 am, Dave Goodchild wrote: I am working on a viral marketing application that uses multipart emails to notify entrants of their progress in the 'game'. I have a demo version which works fine, and the current rebranded version was also fine until the client asked

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application for the marketing department of a charity. On

Re: [PHP] Help!

2006-04-29 Thread chris smith
On 4/29/06, Dave Goodchild [EMAIL PROTECTED] wrote: All my variables are correctly delimited. And don't make assumptions about what my code looks like - I am asking for help, not judgements, and my question was valid (unlike many you see here). I am not a spammer either, this is an application

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: In the demo version the script accesses the $_GET array - an example value: $data[email] ..which works fine in the demo app. If I quote all the values thus in the new version: $data['email'] ..the arguments appear in the correct

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:01 am, Dave Goodchild wrote: Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated (including emails sent) it displays a thank you

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 9:19 am, Dave Goodchild wrote: I would do but there are 5000+ lines and no indication of where the error is occurring. I have just copied the demo version into the same dir and it works fine - and that version calls the same classes (includes). Go ahead and let he

Re: [PHP] Help!

2006-04-29 Thread Dave Goodchild
Wrong - both versions run on the same server (virtual hosts but same php.ini). I will check the values however, thanks! On 29/04/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, April 28, 2006 8:57 am, T.Lensselink wrote: In the demo version the script accesses the $_GET array - an example

Re: [PHP] Help!

2006-04-29 Thread Jochem Maas
Dave Goodchild wrote: All my variables are correctly delimited. strings constants are delimited not variables, semantically speaking. And don't make assumptions about what my code looks like why not? besides how are you going to stop someone from assuming your code looks like [x]? - I am

Re: [PHP] Help!

2006-04-29 Thread Martin Alterisio
That's ok, but then I can't help you more than I tried to. Just check with what I told you about debug_backtrace(), at least that way you can trace where the function was called with wrong arguments. 2006/4/29, Dave Goodchild [EMAIL PROTECTED]: Misleading to who? I own the app and am the only

Re: [PHP] Help!

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:11 am, Jochem Maas wrote: Dave Goodchild wrote: All my variables are correctly delimited. strings constants are delimited not variables, semantically speaking. Not to mention that they CANNOT be correctly delimited, or you would NOT be seeing that error message.

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
A blade? come on :) Seems to me it's just an error in : /home/friend/public_html/process1.php line 158 that mangles up your email output. Try and fix this undefined constant. Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Well there is an undefined constant prize somewhere.. well it's just a notice but it really looks like the problem.. Try setting error_reporting(0) and see if it runs... process1.php only has 64 lines. On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: A blade? come on :) Seems to me it's

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Hey Dave, Besides from example two being the correct way to call array elements. I think it has something todo with error reporting. It's the only thing that comes to mind right now. Maybe you demo server doesn't echo notices... Maybe i'm wrong .. it's friday and my brain don't work that good :)

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated (including emails sent) it displays a thank you message. Otherwise it shows the starter form. All that happens

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Maybe show some code... Think some error inside a class / function causes that no output is send... Thanks - now the parameters reach the function intact but the mailer still does not work. Basically, the form is a self-reloader. If the form has been submitted and the data validated

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
I would do but there are 5000+ lines and no indication of where the error is occurring. I have just copied the demo version into the same dir and it works fine - and that version calls the same classes (includes). On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote: Maybe show some code... Think

Re: [PHP] Help!

2006-04-28 Thread Barry
Dave Goodchild schrieb: I would do but there are 5000+ lines and no indication of where the error is occurring. I have just copied the demo version into the same dir and it works fine - and that version calls the same classes (includes). The problem is without code we neither can give any

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Without code it is hard to give an indication... Try and match php.ini's.. Anyway i go home now. Maybe in the evening have some time to think.. Or maybe some other bright mind on the list has an idea.. goodluck, Thijs I would do but there are 5000+ lines and no indication of where the error

Re: [PHP] Help!

2006-04-28 Thread Dave Goodchild
Thanks all. Worst case scenario I can rebuild from the demo as it works (really don't want to do that). Was loathe to plaster your screens with miles of code but understand it's hard to assit without it. Just wanted to know I wasn't alone! Have a great weekend! On 28/04/06, Barry [EMAIL

Re: [PHP] Help!

2006-04-28 Thread Wolf
Dump some code to the list, just the inside function in and of itself SHOULD give enough to find the bug. It is PROBABLY how you are snagging your data inside from out, or you left out a somewhere and it is catching it. Believe me, I have had a heck of a time due to a single missing somewhere

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart

Re: [PHP] Help!

2006-04-28 Thread Barry
Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing

Re: [PHP] Help!

2006-04-28 Thread Martin Alterisio
2006/4/28, Barry [EMAIL PROTECTED]: Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang.

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread chris smith
On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect function for later use,

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread Adele Botes
chris smith wrote: On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect

Re: [PHP] help with multidimentional arrays

2006-04-12 Thread John Wells
On 4/11/06, Bing Du [EMAIL PROTECTED] wrote: == foreach ($sponsor_id as $sponsor = $arr) echo $sponsor:; foreach ($arr[$sponsor] as $project) { echo $projectbr; } == It looks like you're building your array just fine. Here though, your

Re: [PHP] help with multidimentional arrays

2006-04-12 Thread Bing Du
On 4/11/06, Bing Du [EMAIL PROTECTED] wrote: = foreach ($sponsor_id as $sponsor = $arr) echo $sponsor:; foreach ($arr[$sponsor] as $project) { echo $projectbr; } = It looks like you're building your array just fine. Here though, your

Re: [PHP] help with multidimentional arrays

2006-04-11 Thread Richard Lynch
On Tue, April 11, 2006 1:58 pm, Bing Du wrote: What I intend to do is put the database query results in a multidimentional array like this. $sponsor_id['sponsor1'] = ('project1 title', 'project2 title', 'project3 title'); $sponsor_id['sponsor2'] = ('project1 title','project7 title');

Re: [PHP] Help with a complex scenario

2006-04-07 Thread tedd
At 4:59 PM -0400 4/7/06, Robert Fitzpatrick wrote: I have an order table that we are trying to figure out a way to find the best (cheapest) scenario to sending to vendors to fill the orders. Let's say we have 10 parts ordered, if we split that amongst vendors, even paying a higher shipping cost

Re: [PHP] help with some logic.

2006-04-06 Thread Dallas Cahker
Thanks makes it alot easier to follow. On 4/4/06, Dallas Cahker [EMAIL PROTECTED] wrote: Okay I'll look at that. What about switching to setting the password in md5 format in the cookie rather then a regular id. I might not call the cookie password but to me in thinking about it seems like

Re: [PHP] help with some logic.

2006-04-04 Thread Dan McCullough
hey Dallas, have you thought about breaking this up and making two seperate functions one the checks the cookie and one that checks the session information? I'm not sure if that is what you were looking for as far as an answer but it might be a good start. On 4/4/06, Dallas Cahker [EMAIL

Re: [PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
Okay I'll look at that. What about switching to setting the password in md5 format in the cookie rather then a regular id. I might not call the cookie password but to me in thinking about it seems like the same thing as setting a random id and then saving the random id in the db. On 4/4/06, Dan

RE: [PHP] Help?

2006-03-24 Thread Clinton, Rochelle A
: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 3:39 PM To: Clinton, Rochelle A Cc: php-general@lists.php.net Subject: RE: [PHP] Help? On Thu, March 23, 2006 2:19 pm, Clinton, Rochelle A wrote: Hi Richard, WOW! Thanks for such a quick response - this is just driving me

Re: [PHP] Help?

2006-03-23 Thread John Nichel
Clinton, Rochelle A wrote: Hello, I am fairly new to PHP and am having an (SILLY) issue that I cannot seem to resolve: I am pulling data from an html file and some of the lines of text that I need start with /a. I cannot seem to get rid of that tag!!! I have tried: *

Re: [PHP] Help?

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 1:50 pm, Clinton, Rochelle A wrote: I am fairly new to PHP and am having an (SILLY) issue that I cannot seem to resolve: I am pulling data from an html file and some of the lines of text that I need start with /a. Show us an actual line, copy/paste, to be sure we are

RE: [PHP] Help?

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 2:19 pm, Clinton, Rochelle A wrote: Hi Richard, WOW! Thanks for such a quick response - this is just driving me crazy! Not to mention consuming my time. I actually had been using the $line = in front of my replace attempts. Here is the exact offending code:

Re: [PHP] help with smarty+cms

2006-03-23 Thread Richard Lynch
On Thu, March 23, 2006 11:28 am, ganu wrote: Hello all, I worked with one site and now is working fine with smarty. Now I want to implement the CMS in that, I went thru the link http://smarty.php.net/resources.php?category=2 now I want a CMS so my existing site looks as it is and with some

Re: [PHP] help with setting menu styles with PHP

2006-03-16 Thread tedd
http://www.inspired-evolution.com/About_Me.php What I want to do next is to change the menu from being hard coded on all of my pages to being an include making the menu more manageable. The stumbling block is I want to be able to keep the CSS functionality where you have the active indicator

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