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
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
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
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
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
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
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]...
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
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
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
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
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
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
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:
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
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
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
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,
18 matches
Mail list logo