david,
the syntax needs a single variable there...not a list, or multiple
vars...plus, if you look at http://php.net/list, you'll see it returns
void, and foreach($table as void) doesn't make much sense...
jack
- Original Message -
From: David Otton <[EMAIL PROTECTED]>
Date: Tuesday,
Hey Marcus,
Lots of different ways...first, the \ is being added because you have
magic_quotes turned on...you can use set_magic_quotes_runtime to turn
them off in a specific script, edit your php.ini file to turn them off
completely, or just do a string replace - replace \' with ' and \"
wit
i won't pretend to be an XML guru, but isn't saying "php won't work with XHTML" akin
to saying
"php won't work with javascript1.3, dhtml, netscape 6" etc?
php generates code...html, dhtml, whatever...i fail to see how php couldn't generate
what anyone would need for XHTML, or anything else along
this was just asked yesterday...if you have a phone number and it has 10 digits,
then use easily use substr to add slashes at the right points...same for the other
number...
-jack
- Original Message -
From: "Jason Caldwell" <[EMAIL PROTECTED]>
Date: Wednesday, May 16, 2001 10:58 pm
Subje
ah, i got it...
ok, try this:
$length is arbitrary...
$x is your counter...
do the loop as before, but each time through the loop, $loopcount++;
So, if you do the loop 5 times, $loopcount == 5.
Then, at the end, $length - ($loopcount*$x) gives you the amount of 's to
echo. Put another for loo
ok, again, trying to understand "blank space"...but, try this:
if you print out you'll get something i think you're referring to as blank
space...
try using a nonbreaking space in there...either or a space in the code; this
will force
the "emptiness" to show up...
-jack
- Original Mess
Even better, try strstr...it'll be faster than a regexp for a simple
search of a string for another string.
-jack
- Original Message -
From: "Tobias Talltorp" <[EMAIL PROTECTED]>
Date: Sunday, April 15, 2001 7:20 pm
Subject: Re: [PHP] search string
> I think you want regular expression
hey scott,
i compiled php and gd on my redhat 6.2 box a couple weeks ago..took a
little tweaking to make sure i had jpeg installed right, etc, but in the
end its working well...what was your error? maybe that'll shed some
light...
-jack
- Original Message -
From: "..s.c.o.t.t.. [gts
"try again" after 20 minutes...give people some time to
respond!...anyways, you can explode the variable...
list($junk,$domain) = explode("@",$email);
checkout http://www.php.net/explode
you'll use it a lot
-jack
- Original Message -
From: "Jacky" <[EMAIL PROTECTED]>
Date: Thursd
Hey Peter,
not to keep this discussion going (which of course i do by typing
this), but i wanted to add a quick comment on what you wrote...in a lot
of ways, i'm a "newbie" to PHP...i've only been using it seriously for
a couple months (max)but, i hate having others figure things out
for
Hi all,
I've recently discovered the extract function (thanks to the poster
regarding it), and have found it to save lots of time.
I'm having a problem though. 99 times out of 100 when someone thinks
they've found a "bug" it's actually their misuse of the function, so i'm
pretty sure this is
11 matches
Mail list logo