On 15 Mar 2013 at 13:10, Jay Blanchard jay.blanch...@sigmaphinothing.org
wrote:
I have inherited a mess of a home-grown PHP framework that literally
fills the error_log with 100's of thousands of messages each day. First
order of business was rotating the logs, now we are working through
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a
url.. And it's odd because the query is pulling everything BUT the ID which
is the first field...
code:
a href=view.php?ID=?php echo
$_SESSION['fullRestaurantList']['ID']??php echo
There is obviously something else wrong. That's the purpose of isset();
Comment out your line and see what happens.
I'd guess the real problem is later in your code when you are trying to do
something with $HTTP_COOKIE_VARS[LoggedIn] even though your isset() test said
it didn't exist.
I tried this to set the value...
if (!isset($_POST['heading'])) {
$_POST ['heading'] = ;
}
because the following line give the notice 'undefined index' BEFORE the
submit button has been pressed..
? $heading_insert= stripslashes($_POST['heading']);?
What everyone else said, but also:
On Thu, November 10, 2005 8:38 am, Mark Rees wrote:
It's not good practice (in fact I don't even know if it's possible) to
It's definitely possible in the sense that you can cram things in
there.
You can store your lunch in the trash can and pull it back out when
it's time to eat.
Neither of
Michael Jonsson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice: Undefined index: user_status in
No, it's not set to NULL it just emty...
.M
Torsten Roehr wrote:
Michael Jonsson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice:
Michael Jonsson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
No, it's not set to NULL it just emty...
Empty means:
$_SESSION['user_status'] = '';
or
$_SESSION['user_status'] = 0;
Not setting it does NOT mean it's empty.
Torsten
.M
Torsten Roehr wrote:
Michael Jonsson
No, it's not set to NULL it's just emty...
.M
Torsten Roehr wrote:
Michael Jonsson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
Why do I get an error if the $_SESSION['user_status'] is NULL ???
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Michael Jonsson wrote:
Hi
Why do I get an error if the $_SESSION['user_status'] is emty (it's not
set to anything) ???
in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not
working...
Script##
session_start();
echo $_SESSION['user_status'];
#error##
Notice:
settype(), isset(), and empty() checks will all bypass this, but there is no
need to have error reporting set that high ...
error_reporting(2047);
--
Jon Kriek
http://phpfreaks.com
Terence [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi List,
Since I started using
Voisine wrote:
Hi,
I'm learning php from a book but because of global off I have have
several Undefined index message! I don't want to change the default
setting in my php.ini because I want to learn the good way.
What I'm doing wrong?
Undefined index: categorie
if ($_POST['categorie']
Jens Winberg wrote:
I'm having trouble with the newest version of PHP (4.2.2).
For example in a page I'm using the following code:
if ($_GET['action'] == logout) {
//do something
}
But I'm getting an error message that says:
...log_message reports: PHP Notice: Undefined index: action
Hi!
JüRgen wrote:
It's me again, i don't mean to be a bugger, but i really like to learn as
much as possible, that's why i ask (or will ask so many questions).
Consider the following (i shortened this a lot, but it will do the trick)
$op = $_GET['op'];
switch ( $op )
{
case admin:
do this:
$op = isset($_GET['op']) !empty($_GET['op']) ? $_GET['op'] : '';
JüRgen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It's me again, i don't mean to be a bugger, but i really like to learn as
much as possible, that's why i ask (or will ask so many
15 matches
Mail list logo