[PHP-DB] the space in php

2002-07-21 Thread bo
To Php Gurus: I'm writing some code like this: echo(tda href=javascript:popUp('bios/bio_.$row[scoutname]..html').$row[scoutbi o]./a/td); but the scoutname is something like Mike Johnson, which has a space in bettwen Mike and Johnson, how do I chop this space off, so I can name the

[PHP-DB] the space in php (2)

2002-07-21 Thread bo
Indeed, it's better that if I can just stop when I encouter a space before Johnson, and take the first name(Mike) off. So, the file name will be bio_Mike.html Thanks Bo -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: the space in php

2002-07-21 Thread bo
test Bo [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] To Php Gurus: I'm writing some code like this: echo(tda href=javascript:popUp('bios/bio_.$row[scoutname]..html').$row[scoutbi o]./a/td); but the scoutname is something like Mike Johnson, which has a space in bettwen Mike and

[PHP-DB] string

2002-07-21 Thread bo
Hi, for any email end with @companyemail.com such as [EMAIL PROTECTED] how do I strip only the portion(in this case:bo) before the common ending:@companyemail.com ? Thanks a bunch! PHP: the solution to the web problem Best Regards to PHP Community Bo -- PHP Database Mailing List

Re: [PHP-DB] string

2002-07-21 Thread Ray Hunter
list( name, rest ) = explode( '@', $email ); name = everything before the @ rest = everything after @ .: B i g D o g :. - Original Message - From: bo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 21, 2002 4:42 PM Subject: [PHP-DB] string Hi, for any email end with

[PHP-DB] Hex Help Please...

2002-07-21 Thread Georgie Casey
Rite, There's a PHP script that takes a monochrome BMP and converts it into some sort of hex code and I've noticed some patterns with this code. This image is 72 pixels wide by 14 high so there's 1008 pixels. In the code returned, theres 252 chars, which is 1008 divided by 4. So I guessed the

[PHP-DB] Re: Hex Help Please...

2002-07-21 Thread Georgie Casey
OK, i thought I found my solution but... How come if I convert from 1000 from Binary to Hex in calculator, it returns 8, but when I use the PHP bin2hex function, it returns loads of 3s and 0s Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

RE: [PHP-DB] the space in php (2)

2002-07-21 Thread Russ
Bo: Why do you not just store the name's of the people you wish to display as FirstName and LastName in two different columns? If for some reason you can't or don't want to do it this way then try using str_replace() should do what you want: http://www.php.net/manual/en/function.str-replace.php

[PHP-DB] To Bo

2002-07-21 Thread Adam Royle
Study these two parts in the manual, and you will know how to do everything you've mentioned (and more). http://www.php.net/manual/en/ref.strings.php http://www.php.net/manual/en/ref.array.php Adam

[PHP-DB] server performance

2002-07-21 Thread eat pasta type fasta
Not exactly a PHP question, but you guys will know, is there a significant performance difference in how long does it take a server to find files as the directories become more nested, eg. 1. file index.php uses images from directory DIR vs. 2. file index.php uses images from directory

[PHP-DB] Re: To Bo

2002-07-21 Thread bo
Hi, Adam Thank you, indeed right after I post my question, I was able to use strpos and substr functions to solve my problem. Thanks a lot. Sincerely Bo Adam Royle [EMAIL PROTECTED] ??:001901c2311d$f5ea97c0$[EMAIL PROTECTED] Study these two parts in the manual, and you will know how to do

Re: [PHP-DB] string

2002-07-21 Thread bo
Hi, .: B i g D o g :. Thank you, indeed right after I post my question, I was able to use strpos and substr functions to solve my problem. But yours is even simpler with only one function, cheers. Thanks a lot. Sincerely Bo Ray Hunter [EMAIL PROTECTED] ??:01a901c23108$8a881a30$[EMAIL

[PHP-DB] Re: server performance

2002-07-21 Thread Chris Earle
I think that's entirely dependent on the server's OS. If the OS has a problem, then yes, obviously, otherwise I don't see a reason (unless there is a bug) for significant speed loss. Eat Pasta Type Fasta [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not exactly

[PHP-DB] search syntax

2002-07-21 Thread Matthew K. Gold
hi everyone, I'm writing the code to make my mysql database searchable. I can search two columns, but I seem to have problems when I try to search three. In the SELECT statement, this WHERE statement works: WHERE column1 OR column2 LIKE '%$search%' AND... This WHERE statement doesn't work:

Re: [PHP-DB] search syntax

2002-07-21 Thread Tony
Try break up the query, like: WHERE (column1 LIKE '%$search%' OR column2 LIKE '%$search%' OR column3 LIKE '%$search%') AND ... Tony S. Wu Matthew K. Gold at [EMAIL PROTECTED] wrote: hi everyone, I'm writing the code to make my mysql database searchable. I can search two columns, but I

Re: [PHP-DB] search syntax

2002-07-21 Thread Matthew K. Gold
Great--it works now. Thanks very much, Tony. I appreciate your help. best, Matt - Original Message - From: Tony [EMAIL PROTECTED] To: Matthew K. Gold [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 22, 2002 1:01 AM Subject: Re: [PHP-DB] search syntax Try break up the

[PHP-DB] Re: how can this be? GET instead of POST - db error

2002-07-21 Thread Chris Earle
The person could have been trying to break into the DB. Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody, I am just trying to find out how some db errors happened during a user was browsing my web app. This is out of the Apache log: GET

[PHP-DB] RE: [PHP] Hex Help Please...

2002-07-21 Thread Martin Towell
Doesn't look like anyone has replied to you on the php-general mailing list. Have a look at this page http://www.wotsit.org/search.asp?s=graphics some of the docs there might help you HTH Martin -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22,