re isn't, necessarily. That was pseudo-code to demonstrate what I
thought you were asking about.
The point of my reply was "I don't think it's possible to do what you
want to do here," and offer up an alternative in passing __LINE__ as an
argument to error().
Good luck!
-
y be to pass __LINE__ as an arg to error() and use it there as you
please. I don't know of any $parent::__LINE__ syntax, which is what it
sounds like you're asking about...
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECT
ct_Form
> _test.php
> on line 58
>
> the above code is just the php form part of the page not the entire
> code, so it would be impossible to determine line 58, but I was hoping
> someone would be able to spot the problem or at least explain the
> error to a relative newbie.
From: André Medeiros [mailto:[EMAIL PROTECTED]
> On Wed, 2005-07-27 at 11:41 -0400, Mike Johnson wrote:
> > From: André Medeiros [mailto:[EMAIL PROTECTED]
> >
> > > On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote:
> > >
> > > > Or even four
> > well as ' as in John O'Kane
> >
>
> Yeah, that's why strpos will make his life much easier :)
Can you explain how you'd use strpos() in this situation? I was going to ask
earlier, but didn't bother, but now I'm curious...
--
Mike Johnson
that sometimes the function does not
> return 1, even when it should.
>
> I was hoping some experienced eyes could take a gander at
> this and give me some pointers.
PHP doesn't eval code in single-quotes, so what you want to do is
simply:
if (empty($workingArray[$i]))
probably best to check if it's empty, something such as:
if (!empty($id)) {
$query = 'DELETE FROM sheet1 WHERE id = ' . (int)$id;
} else {
echo 'Argument $id was empty';
}
HTH!
--
Mike Johnson Smarter Living, Inc.
Web Developer
your help
In this specific example, I think this would work:
That's not terribly flexible, though. Is this used in a more generalized
sense, or is it just this specific instance?
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
flag. If you're mailing to a large
group or to certain domains/spam handlers, you may easily get flagged
for bulk mail.
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mailing List (http://www.ph
::g();
}
static function g() {
print("Base\n");
}
}
class Derived extends Base {
static function g() {
print("Derived\n");
}
}
Derived::f('Derived');
Not sure if this is what you're looking for
gt;
That's correct behavior. As you're simply running action.php on its own,
it sees that $_POST['name'] and $_POST['age'] don't exist and outputs a
notice for each.
To avoid the notices, ensure that those keys exist before calling
something like echo on them:
From: Mike Johnson [mailto:[EMAIL PROTECTED]
> From: PartyPosters [mailto:[EMAIL PROTECTED]
>
> > Hello,
> > I have a variable that contains a filename, I want to be able
> > to insert the date and time just before for the ".jpg"
> > for example if my
to be human-readable, might I
suggest date('U')? It's the number of seconds since the epoch; it's
easily convertable to human-readable format. If that doesn't fly,
perhaps MySQL's datetime format, which is a 14-digit int, achievable
with date('
LIMIT 100,10;
Le premiere retourne resultant zero a dix, le seconde retourne onze a vingt, et
le deniere retourne resultant cent a cent-dix.
J'espere que ceci aide, et ma Francaise et intelligible! Bonne chance!
--
Mike Johnson Smarter Living, Inc.
Web Developerw
k the obvious question, but are you editing the
right file and/or saving it to the right place?
I only ask because I've done that so many times it's not funny. :)
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED
t; regular expressions this morning so I'm no expert on them...
The quick & dirty way, I think, would be the following:
I'm curious to see if there's an easier way to do it, though. I'm not
sure regexps are the answer.
--
Mike Johnson Smarter Living, In
ocs/misc/FAQ.html#rewrite-more-config
This is Apache-specific, but I'd imagine there are similar methods for
other webservers.
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mail
ad this list
daily and, while I may skip some messages, I've never seen anything
about any group like what you posted earlier.
Do tell, I'm curious.
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED] (617) 886-5539
--
PH
TP_POST_FILES;
See here for more info:
http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.f
iles
Hope this helps!
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smartertravel.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mail
nnoying, no?
>
> Best regards,
>
> Richard Davey
My personal favorite is when someone requests a read receipt on
listmail. I wonder what their inbox looks like when 500 people send one
back all in the space of five minutes.
--
Mike Johnson Smarter Living, Inc.
Web Developer
ociative arrays.
$x = 'products';
$issorttext[$x] = 150;
$isnewsorttext[$x] = 350;
$iscount[$x] = 50;
$isnewcount[$x] = 20;
After this, you'd end up with four arrays of one key each ('products'),
referenced as such:
e.
I didn't get to do much debugging as I was in a hurry. I just wanted to
toss this one out there and see if it was a known issue I'd missed in
Google. I doubted it, but figured it was worth a shot.
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smart
anyone ever run into something like this, though? I Googled to no
avail...
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smarterliving.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
middle of a row and fill with N empty tags.
Also, if there's a better way to do this, I'm all ears. This is the way
I've done it for years, but it /is/ a pain to do.
Anyway, HTH!
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smarterliving.com
[EM
d-%y') AS date_format_1,
DATE_FORMAT(date_field, '%M %e, %y') AS date_format_2...
HTH!
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smarterliving.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t);
>
> And it still is producing an empty page (not even echoing out
> the $addtocart variable) when I run it.
If this is just a snippet and you do close that if clause with a curly
brace later in the code, my guess is that the parser doesn't like the
$_POST['book_title_'
at, I'm not certain the code is exactly what you want, but
this should at least solve the blank page problem. I think PHP's barfing
on that but errors aren't being written to the browser.
Good luck!
--
Mike Johnson Smarter Living, Inc.
Web Developerwww.smarterliving.com
[EMAIL PROTECTED] (617) 886-5539
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27 matches
Mail list logo