Hi Tom,
First problem, is that the variable $incident_array isn't declared
beforehand outside the loop.
Do:
var $incident_array = array();
before the loop. That way PHP doesn't assume that it's scoping is only for
within the loop, since that's where the variable is created, not having
been p
Hi Shawn,
If you run the script without supressiung the warnings you would perhaps see the reson
:-)
When running the script from the command line PHP hase the same access rights as the
user executing the script. When executing through a request to a web server, PHP has
the same access rights
On the apache site they very clearly say that Apache on windows is not as
secure or reliable as the Linux versions. I was wondering if there are many
security problems (in comparison with IIS... wha wha I know!) Also, if
people have run into stability problems in windows with Apache.
Also, I kn
php-windows Digest 1 Aug 2001 00:57:41 - Issue 678
Topics (messages 8590 through 8603):
Re: extracting value from array
8590 by: elias
win2000pro and PHP inst.?
8591 by: Niclas
8593 by: Phil Driscoll
8594 by: Leon
Re: DB Date check !!
8592 by: Mike
when i try to send an e-mail using the mail(); function i get the following
message:
Warning: Failed to Connect in d:\Server\apache\htdocs\dev\inc\functions.inc
on line 26
Line 26 of the functions.inc file reads like this:
$mailsend = mail("$email", "$subject", "$body", "From:
$from\r\nContent-
Can anyone tell me why the following code won't work when I call it through
Apache, but it DOES work when I do it in a Command Prompt?
It gives me 0 when I run it through Apache. I'm have PHP set up to run as
CGI. PHP 4.0.6 w/ latest 4.0.7-dev snapshot on top.
What I'm going to end up doing is
Whoops, my mistake. I read your code completely wrong. Ignore my
comments. You are calling the first variable but I didn't expect it to
be called like that. I expected that the array would be appended to by
calling it like this:
$incident_array[]=$value;
Nevermind, sorry 'bout that.
Paul
Well, first of all, to get the first value of the array you should call
it as $incidnet_array[0]. Now doing that *might* fix your problem if you
were only recieving one value for the array. So if you were getting
output inside the array, how many outputs were you getting? One or two
or more?
~Pau
Hi folks.
I have an interesting problem with regards to variable scope in loops.
Now I understand how this operates in functions but its the first time I
have seen variable scope in a loop.
Below is a code snippet of what I have:
// execute SQL query
OCIExecute($sql_statement) or die("Couldn't
"Andrew.Martin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a list of records displayed in a table generated from a DB
> (records are from numerous DB tables). The table consits of check
> box(name = DB name and index), title(url link with ID) date
>
Hi Martin,
PHP is only executed when the user requests the page. It is all processed
by the server on the server-side (thus it's called a server-side scripting
language), before returning any HTML to the user.
Thus, you can't "dynamically" pull data once a page has loaded. What you
can do i
I have a list of records displayed in a table generated from a DB (records
are from numerous DB tables). The table consits of check box(name = DB name
and index), title(url link with ID) date and status
When the check box is selected I need to retrieve the DB table name and a
specific ID
The sele
I am trying to query a database, and return the results on the same
page.
I have a form to enter the item that I want to query.
I would like to have a table below, so that the results would be
displayed.
right now I'm just using a small database to get the things working. I
can query a database
Hi there
give more info!!!
This could be an ISAPI module issue or IIS
With IIS Anonymous user access needs to be granted.
With ISAPI you need to setup a general filter under home dir in web properties
with '%s %s' after the %drive%/%folder%/php.exe
Cheers
Niclas wrote:
> Well, I maby the firs
On Tuesday 31 July 2001 14:21, Niclas wrote:
> Well, I maby the first (or not) who is installing PHP on my computer, I
> cant get it to work .
> The isnt. runs fine and I get no errors. but when I am trying to access my
> PHP-based pages I dont get any output, only a
> loggin-window though I am lo
date('Y-m-d') is how MySQL likes to see DateTime types represented.
$today = date('Y-m-d');
$query = 'SELECT * FROM tblEvents ';
$query .= "WHERE dtmEventDate >= $today ";
$query .= 'ORDER BY dtmEventDate DESC';
$result = mysql_query($query);
...etc...
Hope that helps.
-Mike
At 10:26 AM 7/31/
Well, I maby the first (or not) who is installing PHP on my computer, I cant
get it to work .
The isnt. runs fine and I get no errors. but when I am trying to access my
PHP-based pages I dont get any output, only a
loggin-window though I am logged in as "Administrator"???
And when I logg in with
nice one!
"Hugh Bothwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > <[EMAIL PROTECTED]> wrote in message
> > 011401c11958$26d38f60$[EMAIL PROTECTED]">news:011401c11958$26d38f60$[EMAIL PROTECTED]...
>
> > let's say there is an array with 10 elements.
> >
php-windows Digest 31 Jul 2001 10:54:02 - Issue 677
Topics (messages 8582 through 8589):
Re: extracting value from array
8582 by: Michael Kelley
8584 by: Hugh Bothwell
Re: include()ing the remote file
8583 by: Ignatius Teo
Re: PHP zombies on Win2K.
8585 by:
SELECT * FROM table1
WHERE YEAR(datefield1) = 1999
check datetime functions @ http://www.mysql.com/documentation
"Andrew.Martin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I want to check the date of numerous records in many DB tables, I have
trie
Hi,
I want to check the date of numerous records in many DB tables, I have tried
using the
date (Ymd); function but it doesn't appear to work, not sure whats going
wrong.
I set a variable based on this function and use this variable within the
select statement!
Anyone know whats happening or if
Lo all
Headers and cookies are really becoming a bugger!
What I'd like to know is:
1. Do headers and setcookie() functions have to be in direct succession?
2. Is there a time limit for the setcookie() to be executed from the time the header
is sent? ie 30sec
P.S.:
WILL PPL PLEASE STOP USING TH
22 matches
Mail list logo