Re: [PHP-WIN] Variable scope in loops

2001-07-31 Thread Mike Flynn
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

Re: [PHP-WIN] Works through DOS, not through Apache

2001-07-31 Thread Frank M. Kromann
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

[PHP-WIN] couple of questions about php and apache on win2k server

2001-07-31 Thread Kash
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 -0000 Issue 678

2001-07-31 Thread php-windows-digest-help
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

[PHP-WIN] mail(); error

2001-07-31 Thread Chris Burwell
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-

[PHP-WIN] Works through DOS, not through Apache

2001-07-31 Thread SHAWN
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

Re: [PHP-WIN] Variable scope in loops

2001-07-31 Thread Paul Smith
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

Re: [PHP-WIN] Variable scope in loops

2001-07-31 Thread Paul Smith
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

[PHP-WIN] Variable scope in loops

2001-07-31 Thread Tom Tsongas
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

[PHP-WIN] Re: submitting records from multiple DB tables

2001-07-31 Thread Hugh Bothwell
"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 >

Re: [PHP-WIN] Help with a query, and return result on the same page.

2001-07-31 Thread Mike Flynn
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

[PHP-WIN] submitting records from multiple DB tables

2001-07-31 Thread Andrew.Martin
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

[PHP-WIN] Help with a query, and return result on the same page.

2001-07-31 Thread Martin Tengowski
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

Re: [PHP-WIN] win2000pro and PHP inst.?

2001-07-31 Thread Leon
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

Re: [PHP-WIN] win2000pro and PHP inst.?

2001-07-31 Thread Phil Driscoll
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

Re: [PHP-WIN] DB Date check !!

2001-07-31 Thread Mike Flynn
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/

[PHP-WIN] win2000pro and PHP inst.?

2001-07-31 Thread Niclas
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

[PHP-WIN] Re: extracting value from array

2001-07-31 Thread elias
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 -0000 Issue 677

2001-07-31 Thread php-windows-digest-help
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:

[PHP-WIN] Re: DB Date check !!

2001-07-31 Thread elias
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

[PHP-WIN] DB Date check !!

2001-07-31 Thread Andrew.Martin
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

[PHP-WIN] Cookies and headers

2001-07-31 Thread Leon
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