Re: [PHP] Split/Group date together.

2013-07-18 Thread Larry Garfield
If I understand you correctly, I call what you're trying to do PHP group by, and did a write up on it a few years back: http://www.garfieldtech.com/blog/php-group-by-with-arrays --Larry Garfield On 7/18/13 8:43 AM, Karl-Arne Gjersøyen wrote: Hello again. In my program I have this: mysql

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread shiplu
On Fri, Jul 19, 2013 at 1:08 AM, php colos phpco...@gmail.com wrote: Am I reading the wrong books for a beginner? Do you just read the book or also do what it says to do? If you just read but dont code along with it, you may not learn anything. After reading a lot of book you'll feel you

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Daniel Brown
On Thu, Jul 18, 2013 at 3:08 PM, php colos phpco...@gmail.com wrote: Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), 'getting good with PHP' by Andrew Burgees and some tutorials on the

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Carsten Jensen
On 07/18/2013 09:08 PM, php colos wrote: Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), 'getting good with PHP' by Andrew Burgees and some tutorials on the internet but can't code

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Sebastian Krebs
2013/7/18 Carsten Jensen to...@tomse.dk On 07/18/2013 09:08 PM, php colos wrote: Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), 'getting good with PHP' by Andrew Burgees and some

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Daniel Brown
On Thu, Jul 18, 2013 at 6:04 PM, iccsi inu...@gmail.com wrote: I have a select control on the form and need to pass value user select to my query parameter. I just realized that user entry value is client side and query parameter is server side. Are there any way to read client parameter to

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
On Jul 18, 2013, at 6:07 PM, Daniel Brown danbr...@php.net wrote: On Thu, Jul 18, 2013 at 6:04 PM, iccsi inu...@gmail.com wrote: I have a select control on the form and need to pass value user select to my query parameter. I just realized that user entry value is client side and query

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
One additional comment. Please change the javascript onclick to onchange -- that way the demo will work for Chrome as well as other Browsers. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Joshua Kehn
Could also use jquery instead Best, -Josh ___ http://byjakt.com Currently mobile On Jul 19, 2013, at 4:08, Tedd Sperling t...@sperling.com wrote: One additional comment. Please change the javascript onclick to onchange -- that way the demo will work for Chrome

Re: [PHP] Premature end of script

2013-07-17 Thread Daniel Brown
On Wed, Jul 17, 2013 at 11:22 AM, R B rbp...@gmail.com wrote: Hello, 5 years ago, y developed a php system and was working fine. But 20 days ago, when y try to access to some pages (not all the pages), in the log appears this message and the page is not displayed: ==

Re: [PHP] Error checking ON

2013-07-17 Thread Daniel Brown
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Since you state that you haven't made any changes to the system (in general), I'm going to guess that you modified an

Re: [PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'On');

Re: [PHP] Error checking ON

2013-07-17 Thread Jim Lucas
On 07/17/2013 09:28 AM, Tedd Sperling wrote: On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT);

Re: [PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Daniel
Hi there, Just a question, do you have Apache configured to use the PHP-FPM and not the Apache module? That something that people can mess up on. Thanks :) On Wed, Jul 17, 2013 at 9:58 AM, Amiya Maji am...@purdue.edu wrote: Hi all, I am using PHP-FPM with Apache 2.4. I periodically change

Re: [PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Amiya Maji
/2013 9:48 PM (GMT-05:00) To: Amiya Maji am...@purdue.edu Cc: php-general@lists.php.net Subject: Re: [PHP] How to read PHP-FPM config values using phpinfo Hi there, Just a question, do you have Apache configured to use the PHP-FPM and not the Apache module? That something that people can mess

Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Adam Nicholls
Hi Andrew Thanks for this. But I'm still getting errors. I think I need to explain a bit more. Unfortunately there isn't a PHP API for this application I'm trying to interact with, my goal really is to be able to expose the COM functionality over a web-service such as SOAP so I can use it in a

Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Přemysl Fiala
Hello, did you tried var_dump or print_r the $oBank object to see his structure ? Also you can try: $BANK_fld_BRANCH_NAME = 22; $oBank-$BANK_fld_BRANCH_NAME = 'something'; Premek. On Mon, 15 Jul 2013 10:21:48 +0200, Adam Nicholls inkysp...@gmail.com wrote: Hi Andrew Thanks for

Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Andrew Ballard
On Mon, Jul 15, 2013 at 4:21 AM, Adam Nicholls inkysp...@gmail.com wrote: Hi Andrew Thanks for this. But I'm still getting errors. I think I need to explain a bit more. Unfortunately there isn't a PHP API for this application I'm trying to interact with, my goal really is to be able to

Re: [PHP] Kickstarter Project on Massive Log data Aggregation and Processing with Open Source Software

2013-07-15 Thread Daniel Brown
On Jul 15, 2013 11:29 PM, Israel Ekpo israele...@gmail.com wrote: Hi Everyone, [snip!] No. Good luck with your endeavor, but please do not broadcast it to this list.

Re: [PHP] COM - Assigning to method.

2013-07-14 Thread Adam Nicholls
Richard - I've tried that I get an error about it not being defined as property of the object. Andrew - do you mean try using the method Richard has shown? Cheers Adam. On 13 July 2013 17:11, Richard Quadling rquadl...@gmail.com wrote: On 13 July 2013 01:24, Andrew Ballard

Re: [PHP] COM - Assigning to method.

2013-07-14 Thread Andrew Ballard
On Sun, Jul 14, 2013 at 3:18 PM, Adam Nicholls inkysp...@gmail.com wrote: Richard - I've tried that I get an error about it not being defined as property of the object. Andrew - do you mean try using the method Richard has shown? Cheers Adam. On 13 July 2013 17:11, Richard Quadling

Re: [PHP] COM - Assigning to method.

2013-07-13 Thread Richard Quadling
On 13 July 2013 01:24, Andrew Ballard aball...@gmail.com wrote: On Jul 12, 2013 4:53 AM, Adam Nicholls inkysp...@gmail.com wrote: Hi Guys/Gals, I'm doing some integration work with a COM API and according to their documentation to save data in the API, you have to assign to the

Re: [PHP] COM - Assigning to method.

2013-07-12 Thread Andrew Ballard
On Jul 12, 2013 4:53 AM, Adam Nicholls inkysp...@gmail.com wrote: Hi Guys/Gals, I'm doing some integration work with a COM API and according to their documentation to save data in the API, you have to assign to the method. This is their example in Visual Basic:

Re: [PHP] strlen ?

2013-07-11 Thread Caio Tavares
Try with mb_strlen see http://www.php.net/manual/en/function.mb-strlen.php 2013/7/5 Jim Giner jim.gi...@albanyhandball.com Trying to manage line breaks in some output I'm generating and using strlen to measure the lengths of the strings I'm printing. Discovered something strange (to me!)

Re: [PHP] syntax question

2013-07-10 Thread Přemysl Fiala
Hello, is an alternative syntax. http://php.net/manual/en/control-structures.alternative-syntax.php Premek. On Wed, 10 Jul 2013 13:15:22 +0200, Jim Giner jim.gi...@albanyhandball.com wrote: Can someone tell me what this syntax is? I looked around but don't see any mention of it.

Re: [PHP] syntax question

2013-07-10 Thread Jim Giner
Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Jim Giner jim.gi...@albanyhandball.com On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get incorrect direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 9:07 AM, Karl-Arne Gjersøyen wrote: 2013/7/10 Jim Giner jim.gi...@albanyhandball.com On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Lester Caine
Karl-Arne Gjersøyen wrote: // start the table $total = 0; echo table border=1; echo trthProduct/thth**Amount/th/tr; // loop thru each item found while ($results = $qrslts-fetch(PDO::FETCH_**ASSOC)) { echo trtd.$results['product_**name']./tdtd.$results['** product_amt']./td/tr; $total

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Lester Caine les...@lsces.co.uk Karl-Arne Gjersøyen wrote: // start the table $total = 0; echo table border=1; echo trthProduct/ththAmount/th/tr; // loop thru each item found while ($results = $qrslts-fetch(PDO::FETCH_ASSOC)) { echo

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Matijn Woudt
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Ajay Garg
Thanks Jim and Matijn for the quick replies. I will try to have a workaround. On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a requirement, wherein I need to allow vanilla

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 2:15 PM, Ajay Garg wrote: Thanks Jim and Matijn for the quick replies. I will try to have a workaround. On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Ajay Garg
Thanks Jim and Anthony. Jim, You are right, your solution is doable. But one thing I am a little skeptical about, is what would be the percentage of the people willing to suggest a new name immediately, versus the percentage of people who would like to cancel the current upload, and come back

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 3:37 PM, Ajay Garg wrote: Thanks Jim and Anthony. Jim, You are right, your solution is doable. But one thing I am a little skeptical about, is what would be the percentage of the people willing to suggest a new name immediately, versus the percentage of people who would like to

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Anthony Wlodarski
Is there anything that would prevent you from somehow uniquely knowing who the user is uploading the file. For example you mentioned client'. If you know who the client is you can append that to the filename or prepend it, for the destination string (second parameter to the function call). That

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Bastien
Bastien Koert On 2013-07-10, at 3:29 PM, Anthony Wlodarski ant92...@gmail.com wrote: Is there anything that would prevent you from somehow uniquely knowing who the user is uploading the file. For example you mentioned client'. If you know who the client is you can append that to the

Re: [PHP] Making a Timeout Expiration Length to Session Variables

2013-07-08 Thread Karim Geiger
Hi, On 07/08/2013 05:10 AM, dealTek wrote: Hi all, I would like to make a timeout length to session variables, so that if a user didn't use the browser page for let's say 5 minutes - the session variables would expire and the user would need to login again. Q: What's the best way to

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
You can simply update phpdocumentor Am 07.07.2013 17:10 schrieb Lester Caine les...@lsces.co.uk: Anybody have phpdocumentor running with PHP5.4? I'm convinced that the errors my copy is throwing are due to e_strict, but I've confirmed that I have the right ini file ( all the needed extensions

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread lester
It's a clean install via PEAR a couple of hours ago! Sent from my android device. -Original Message- From: Sebastian Krebs krebs@gmail.com To: Lester Caine les...@lsces.co.uk Cc: PHP General List php-general@lists.php.net Sent: Sun, 07 Jul 2013 16:41 Subject: Re: [PHP] phpdocumentor

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
-general@lists.php.net Sent: Sun, 07 Jul 2013 16:41 Subject: Re: [PHP] phpdocumentor with PHP5.4 You can simply update phpdocumentor Am 07.07.2013 17 0707201317:10 schrieb Lester Caine les...@lsces.co.uk: Anybody have phpdocumentor running with PHP5.4? I'm convinced that the errors my copy

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Lester Caine
Sebastian Krebs wrote: I meant: PhpDocumentor 2 Problem solved ... Notes on https://github.com/phpDocumentor/phpDocumentor2 need a little update to correct the installation notes to use the beta builds rather than alpha ones. -- Lester Caine - G8HFL - Contact -

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
You can submit a pull request for that 2013/7/7 Lester Caine les...@lsces.co.uk Sebastian Krebs wrote: I meant: PhpDocumentor 2 Problem solved ... Notes on https://github.com/**phpDocumentor/phpDocumentor2https://github.com/phpDocumentor/phpDocumentor2need a little update to correct

Re: [PHP] htaccess

2013-07-07 Thread Simon J Welsh
On 8/07/2013, at 8:06, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a client who has an account with GoDaddy (I know). GoDaddy says they have PHP v 5.3 installed on the client's account, but phpinfo() says different, namely it reports 5.2.17. After calling GoDaddy, they said

Re: [PHP] htaccess

2013-07-07 Thread Tedd Sperling
Simon: Confirmed. Those two lines cause the problem. However, commenting out those lines causes other problems. Are there similar statements to these: AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php5-cgi .php .htm .html That will allow for their function (whatever

Re: [PHP] strlen ?

2013-07-06 Thread Lester Caine
Jim Giner wrote: And the answer is - yes, there is a LF char at the end of my data in my whole table. Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post value and inserts a new

Re: [PHP] strlen ?

2013-07-06 Thread Jim Giner
On 7/6/2013 2:59 AM, Lester Caine wrote: Jim Giner wrote: And the answer is - yes, there is a LF char at the end of my data in my whole table. Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply

Re: [PHP] strlen ?

2013-07-06 Thread Lester Caine
Jim Giner wrote: It's probably worth checking the sting length back through your code just to confirm what added it? The best I can figure is that I did a preload of many of the names from a csv file. Apparently when I do that it stores the LF at the end of the csv line. Have to remember that

RE: [PHP] mongo usage

2013-07-06 Thread Thomas Punt
Could the comma after the last element in your array be causing the problem? Date: Sat, 6 Jul 2013 14:42:07 -0400 From: bluethu...@gmail.com To: php-general@lists.php.net Subject: [PHP] mongo usage Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem to have

Re: [PHP] mongo usage

2013-07-06 Thread Jonathan Sundquist
You commented out the setting of yhe addresses variable On Jul 6, 2013 1:42 PM, Tim Dunphy bluethu...@gmail.com wrote: Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem to have hit an early obstacle that I'd like your opinion on. I try to pass an array to the

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| Could the comma after the last element in your array be causing the problem? I tried removing it, but there was no change. Thanks for the suggestion! On Sat, Jul 6, 2013 at 2:55 PM, Thomas Punt unassailable...@hotmail.comwrote: Could the comma after the last element in your array be causing

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You commented out the setting of yhe addresses variable Those were both equivalent ways of stating the same thing. I tried substituting the other statement but there was no change: $db = $connection-jfdb; //$collection = $db-addresses; $adresses = $connection-jfdb-adresses;

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
On 6 July 2013 19:50, Brian Smither bhsmit...@gmail.com wrote: It looks like you are running the thread-safe version with FastCGI, which I understand to be counter to the recommendations. Thank you for the comment. I switched to PHP5.4.17-NTS-VC9, but the application still crashes. And

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
On 6 July 2013 21:45, Brian Smither bhsmit...@gmail.com wrote: Have you got all your extensions updated? I would think so. Just to state the required disclaimers: phpinfo.php with ? phpinfo() ? works. Liberally peppering a tracer routine throughout the application shows it is getting

Re: [PHP] mongo usage

2013-07-06 Thread Matijn Woudt
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy bluethu...@gmail.com wrote: | You commented out the setting of yhe addresses variable Those were both equivalent ways of stating the same thing. I tried substituting the other statement but there was no change: $db = $connection-jfdb;

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection-jfdb; //$collection = $db-addresses; $adresses = $connection-jfdb-addresses; Any other suggestions? Appreciated. Tim On

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
Thanks. Sorry to bug you guys with this. That did it. sigh On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater t...@clothears.org.uk wrote: On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote: | You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o.

Re: [PHP] Web dev, DB and proper db design.

2013-07-05 Thread Tony Marston
Tamara Temple wrote in message news:557a0092-2b7d-49f4-ae3d-593968dd3...@gmail.com... On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 7/4/2013 6:42 AM, Richard Quadling wrote: Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I

Re: [PHP] Web dev, DB and proper db design.

2013-07-05 Thread Lester Caine
Tony Marston wrote: I was designing and building database applications before relational databases became popular, and in those old hierarchical and network databases there were no such things as foreign key constraints. Database integrity had to be handled in the code, which is what we did.

Re: [PHP] Web dev, DB and proper db design.

2013-07-05 Thread Tony Marston
Lester Caine wrote in message news:51d6987c.9050...@lsces.co.uk... Tony Marston wrote: I was designing and building database applications before relational databases became popular, and in those old hierarchical and network databases there were no such things as foreign key constraints.

Re: [PHP] Web dev, DB and proper db design.

2013-07-05 Thread Lester Caine
Tony Marston wrote: Certainly in some instances then managing everything in code makes sense. Cross database working for instance. So everything works the same for each engine. But the main advantage of adding constraints in the database is that it protects the foreign entries from being deleted

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i 25;$i++ ){ option value=?php echo $i; ??php echo $i; ?/option } The lists look like this: form

Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: The lists look like this: form action=index.php view-source:http://localhost/%7Ekarl/kasen/io/kp/index.php method=postselect name=valgt_dynamit_polse_1-25kgoption value=1-25 selected=selected1-25/optionoption

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i 25;$i++ ){ option value=?php echo $i; ??php echo $i; ?/option }

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Tedd Sperling tedd.sperl...@gmail.com On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: The lists look like this: form action=index.php view-source:http://localhost/%7Ekarl/kasen/io/kp/index.php method=postselect name=valgt_dynamit_polse_1-25kgoption

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello. I have a form in HTML/PHP with for loops that generate

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com

Re: [PHP] Can this work?

2013-07-05 Thread Ashley Sheridan
Can't you just use a number field, which is a hell of a lot easier (especially on an iPad) to use than a bunch of select lists. Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote:

Re: [PHP] strlen ?

2013-07-05 Thread John Meyer
Jim Giner wrote: Trying to manage line breaks in some output I'm generating and using strlen to measure the lengths of the strings I'm printing. Discovered something strange (to me!) in that strlen is returning +1 more than it should. The strings are from a query of my database - simple name

Re: [PHP] strlen ?

2013-07-05 Thread shiplu
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php var_dump(Mike Hall, strlen(Mike Hall)); string(9) Mike Hall int(9) Try trimming it first and then apply strlen. --

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php var_dump(Mike Hall, strlen(Mike Hall)); string(9) Mike Hall int(9) Try trimming it

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.com **wrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner jim.gi...@albanyhandball.comwrote: I checked them in the db manually. Clicked on the name, selected it, no extra space highlighted. Cursored through the length of the value - no extra movements. That does still not guarantee there are no extra

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 2:42 PM, Matijn Woudt wrote: On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner jim.gi...@albanyhandball.comwrote: I checked them in the db manually. Clicked on the name, selected it, no extra space highlighted. Cursored through the length of the value - no extra movements. That does

Re: [PHP] strlen ?

2013-07-05 Thread Stephen
On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post value and inserts a new record with that value along with some other values. And I

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 3:02 PM, Stephen wrote: On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post value and inserts a new record with that value along

Re: [PHP] strlen ?

2013-07-05 Thread John Meyer
MOTS: never take any input on faith. Jim Giner wrote: On 7/5/2013 3:02 PM, Stephen wrote: On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Ken Robinson
Check the permissions on the files/directories involved. I get this on Linux when the files/directories are too open. Ken At 05:38 PM 7/5/2013, Brian Smither wrote: I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web server in

Re: [PHP] strlen ?

2013-07-05 Thread Ashley Sheridan
Jim Giner jim.gi...@albanyhandball.com wrote: On 7/5/2013 3:02 PM, Stephen wrote: On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread Lester Caine
Richard Quadling wrote: Is there a difference in those in 'startups' and web only situations, or those doing more traditional development (split that as you like - I'm just trying to get an understanding and not go off on one!). Depends if you consider MySQL is any use as a real database :)

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread Andy McKenzie
I think it depends on the application. A lot of small web apps simply don't need any kind of normalization, and it really does make sense to put everything in one table, or a couple of unlinked tables. Therefore, on those apps, there's no need for foreign keys. For instance: I used one

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread Tamara Temple
On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 7/4/2013 6:42 AM, Richard Quadling wrote: Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told I've never worked on a web application where foreign keys were used in the

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread musicdev
On Thu, Jul 4, 2013 at 4:20 PM, Tamara Temple tamouse.li...@gmail.comwrote: On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 7/4/2013 6:42 AM, Richard Quadling wrote: Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tedd Sperling
On Jun 27, 2013, at 8:47 PM, Paul M Foster pa...@quillandmouse.com wrote: On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote: holes in sequence of auto increment happen using transaction for insert new record but you don't commit transaction itself it seems that the autoincrement is

Re: [PHP] Problem with variables

2013-06-28 Thread Tamara Temple
Fernando A soporteallpurp...@gmail.com wrote: I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Hi, Fernando, welcome. I'm

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tamara Temple
Tedd Sperling tedd.sperl...@gmail.com wrote: On Jun 27, 2013, at 8:47 PM, Paul M Foster pa...@quillandmouse.com wrote: On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote: holes in sequence of auto increment happen using transaction for insert new record but you don't commit

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-27 Thread adriano
holes in sequence of auto increment happen using transaction for insert new record but you don't commit transaction itself it seems that the autoincrement is incremented anyway at least this is my case. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-27 Thread Paul M Foster
On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote: holes in sequence of auto increment happen using transaction for insert new record but you don't commit transaction itself it seems that the autoincrement is incremented anyway at least this is my case. I think what Tedd was

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Samuel Lopes Grigolato
You can try this: *ALTER TABLE tbl AUTO_INCREMENT = 100;* * * *Source: *http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html (never did it myself, though) On Wed, Jun 26, 2013 at 2:07 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a client where their next

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Stuart Dallas
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not understood. They want it set back. Options such as dropping the primary key and rebuilding the index is NOT

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not understood. They want it set back. Options such

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Giner
On 6/26/2013 1:30 PM, Tedd Sperling wrote: On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote: But more importantly - don't you need to figure out why it happened?? As well as correcting any inserts with the bogus id? Yes, I would like to know -- I'm open for suggestions. Cheers, tedd _

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
Gang: Let me add, currently I am inserting an email address into a database. To find which record was created, I ask for the record number (ID) back. I am asking simply because mysql_insert_id() is deprecated. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote: Let me add, currently I am inserting an email address into a database. To find which record was created, I ask for the record number (ID) back. I am asking simply because mysql_insert_id() is deprecated. How are you doing the

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote: Let me add, currently I am inserting an email address into a database. To find which record was created, I ask for the record number (ID) back. I am asking simply

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
On Wednesday, 26 June 2013 at 19:01, Tedd Sperling wrote: On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com (mailto:stu...@3ft9.com) wrote: On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote: Let me add, currently I am inserting an email address into a database. To

Re: [PHP] Last Record INSERT

2013-06-26 Thread Samuel Lopes Grigolato
AFAIK mysql_[...] is deprecated in favor of mysqli_[...] correspondent functions, there's nothing to do specifically with mysql[i]_insert_id. On Wed, Jun 26, 2013 at 3:01 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com wrote: On

Re: [PHP] Last Record INSERT

2013-06-26 Thread Dan Munro
Learning something new everyday is one of the joys of this profession. If you learn two new things, consider yourself lucky :) On Wed, Jun 26, 2013 at 11:03 AM, Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote: AFAIK mysql_[...] is deprecated in favor of mysqli_[...] correspondent

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