Re: [PHP] strlen ?

2013-07-05 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 rec

Re: [PHP] strlen ?

2013-07-05 Thread Ashley Sheridan
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 post value and inser

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 FastC

[PHP] Find a list of function that clashes?

2013-07-05 Thread Daniel
Hello all, I'm just wondering if there is a way of getting a list of functions that will clash across 2 folders. I'm trying to update wp-united so that I can use it with WordPress multisite. I know that some of the functions are the same in both phpbb and WordPress. Is there any way of generating

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 p

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Brian Smither
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 FastCGI mode on WinXPSP3. An earlier version of this application works. The current version causes a 500 Internal Server Error. There is no entry in PHP's (fully active) er

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 w

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 don'

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 wrote: 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 ar

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner wrote: > 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 characters. Some characters

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner wrote: > On 7/5/2013 1:32 PM, shiplu wrote: > >> On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner >> **wrote: >> >> 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("Mi

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 wrote: 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 strl

Re: [PHP] strlen ?

2013-07-05 Thread shiplu
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner wrote: > 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. -- Shiplu.Mokadd.im ImgSign

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

[PHP] strlen ?

2013-07-05 Thread Jim Giner
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 fields. But eve

[PHP] Fwd: Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: === mysql> SELECT * FROM dynamit; ++-

[PHP] Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: === mysql> SELECT * FROM dynamit; ++-

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" wrote: >2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen >wrote: >> >> > 2013/7/5 Stuart Dallas >> > >> >> On 5 Jul 20

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: >> >>> 2013/7/5 Stuart Dallas >>> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen >> wrote: > Hello. I have a form in HTML/PHP with for loops th

Re: [PHP] Can this work?

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

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 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++ ){ >>> >>> } >>> >>> The list

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Tedd Sperling > On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen > wrote: > > The lists look like this: > > > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > > method="post"> > value="1-25" selected="selected">1-25 > value="1">12 > > Review this: > > http://sperling.com/php/select/

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas > On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 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++ ){ > > > > } > > > > The lists look like this: > > > > http://localhost/%7Ekarl/kasen/io/kp

Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen wrote: > The lists look like this: > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > method="post"> value="1-25" selected="selected">1-25 value="1">12http://sperling.com/php/select/ Also, omit 'multiple' in the select statement. Other than th

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 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++ ){ > > } > > The lists look like this: > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > method="post"> value="1-25" s

[PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i< 25;$i++ ){ } The lists look like this: http://localhost/%7Ekarl/kasen/io/kp/index.php>" method="post">1-2512345678910111213141516171819202122232425 Kg 26-502627282930313233343536373839404142

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] 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. Dat

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. When

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 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 worke