[PHP-WIN] errors while uploading my php site ...... ! ! ! !

2002-08-13 Thread toby z
hi guys this is a weired problem . my site s almost done and workin fine on my machine ive just uploaded it and it AINT worin on the host i confirmed php and mysql support ve made all the tables and everything the errors im getting are : Warning: Cannot send session cookie - headers a

[PHP-WIN] Re: results of mysql_fetch are returning the incorrect records

2002-08-13 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have problems with mysql_fetch return the wrong records. If I execute the > sql statement in mysql, I receive the correct results. When I used > mysql_fetch function, it does not return the correct results. Below is my > function an

[PHP-WIN] results of mysql_fetch are returning the incorrect records

2002-08-13 Thread K. Lee
I have problems with mysql_fetch return the wrong records. If I execute the sql statement in mysql, I receive the correct results. When I used mysql_fetch function, it does not return the correct results. Below is my function and the format sql statement function companiesByBusiness_ZipCode_Bu

[PHP-WIN] session, error occuring when using session_start()

2002-08-13 Thread Daniel Canil
I have jsut recently installed a php development kit on my windows platform. Im interested in using the session functions but I am recieving this error when I use session_start(): Warning: open(/tmp\sess_540ded508edf231c47fe85bd970f936a, O_RDWR) failed: m (2) in d:\phpdev\www\phpdev4\samples\samp

RE: [PHP-WIN] Code Conversion ASP --> PHP Example

2002-08-13 Thread Thoenen, Peter Mr. EPS
I know all of ZERO ASP but think I infer what you are trying to do from that code snippet. What you want is: #Do not need an ODBC conenction first off $connect=mysql_pconnect('localhost', 'user', 'password'); mysql_select_db('database', $connect); # Do the SQL query $resource=mysql_query('SEL

php-windows Digest 14 Aug 2002 00:38:28 -0000 Issue 1287

2002-08-13 Thread php-windows-digest-help
php-windows Digest 14 Aug 2002 00:38:28 - Issue 1287 Topics (messages 15225 through 15242): Re: Newbie needs help. 15225 by: Steve Jackson date and time 15226 by: Sandeep Murphy 15227 by: Ross Fleming Passing array to function 15228 by: Bill Hudspeth

[PHP-WIN] Re: Date conversion

2002-08-13 Thread Brad Thomas
"Kit Kerbel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I would like to convert 2002-04-02 00:00:00 to the format, > 04-02-2002or m/d/Y > > How would I do this? > > Thanx in advance, > Kit > > > > ___

[PHP-WIN] Code Conversion ASP --> PHP Example

2002-08-13 Thread David R
I am in the early stages of learning PHP as an alternative to ASP. I am using MySQL and need a beginning nudge. If anyone has the time, could you please convert the following basic code block into pure PHP/MySQL minus all the MS bits? It's a very simple example I know but the principles would h

Re: [PHP-WIN] Form Posting from script

2002-08-13 Thread GeneralX
Great!!! It works!!! Thanks!!! - Original Message - From: Jim Hunter To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 5:07 PM Subject: Re: [PHP-WIN] Form Posting from script The solution I provided does not require Java. Java and Javascri

Re: [PHP-WIN] Form Posting from script

2002-08-13 Thread Jim Hunter
The solution I provided does not require Java. Java and Javascript are similar in name only. Javascript is built into the browsers that will be displaying your page. All you need to do in PHP is produce the HTML for your client to use. Part of the HTML will be a Javascript function to post the for

RE: [PHP-WIN] mail() function

2002-08-13 Thread Ross Fleming
Yes you can. Check you're getting a valid email address in the variable $retrieveuseremail, try echoing it before the mail() function: echo $retrieveuseremail; mail($retrieveuseremail, "Subject", "Body of email"); Ross > -Original Message- > From: Marlene Burckhalter [mailto:[EMAIL PRO

Re: [PHP-WIN] Form Posting from script

2002-08-13 Thread GeneralX
Once a user has submitted all info, my action page confirms the inputs then sends out confirmation email and to the CGI requiring the info for processing. Problem is that I can't get the Java to work with PHP4. I don't have JDK. php.ini -- extension=php_java.dll [Java] java.class.path =

[PHP-WIN] Mysql connect through proxy

2002-08-13 Thread Daniel Masson
Hello everyone id like to know if theres a way to connect to mysql via proxy ... I really need to !! Any tip or help would be very useful !! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] mail() function

2002-08-13 Thread Marlene Burckhalter
I am very new at this... I want to use the mail funtion, but instead of using an actual e-mail address for the first argument, I want to pass it a variable that I have assigned to the resulting return of a function. The fuction ends like this : function get_useremail {... $query_data = mysql

Re: [PHP-WIN] Form Posting from script

2002-08-13 Thread Jim Hunter
You have answered your own question. It doesn't get any simpler than a submit from Javascript. Now the question you need to think about is when do you want the post to occur? Are you going to have then press a link? After the page loads? After the last piece of data is entered? When you know where

[PHP-WIN] Form Posting from script

2002-08-13 Thread GeneralX
How do you post a form without actually waiting for submit button to be pressed? Got a CGI expecting a form post, all the fields are already available as hidden type in a form, and just need to be send it. I know you can use Java as such: document.forms[0].submit();

Re: [PHP-WIN] addslashes

2002-08-13 Thread Waldemar Brand Neto
Thank you Dash, now it's working. - Original Message - From: "dash php" <[EMAIL PROTECTED]> To: "'Waldemar Brand Neto'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 4:27 PM Subject: RE: [PHP-WIN] addslashes > Put \"'s around the value=$nome like this: > > echo

RE: [PHP-WIN] addslashes

2002-08-13 Thread dash php
Put \"'s around the value=$nome like this: echo ""; -Dash -Original Message- From: Waldemar Brand Neto [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:29 PM To: PHP Windows Subject: [PHP-WIN] addslashes Hey I'm a newbie and have a question about addslashes. In the databs

[PHP-WIN] addslashes

2002-08-13 Thread Waldemar Brand Neto
Hey I'm a newbie and have a question about addslashes. In the databse the field is complete like: Waldemar Brand Neto, but when I get the field from it the return is trunved like Waldemar. How cam I fix that? Thank´s. "; ?> Result : Waldemar and the correct is: Waldemar Brand Neto

Re: [PHP-WIN] Passing array to function

2002-08-13 Thread Scott Carr
Surround your variables with {} curly braces. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting Bill Hudspeth <[EMAIL PROTECTED]>: > I am trying to write a function that builds a multiple-choice drop down > list. As such, I need to specify an ar

[PHP-WIN] Passing array to function

2002-08-13 Thread Bill Hudspeth
I am trying to write a function that builds a multiple-choice drop down list. As such, I need to specify an array in the name attribute of the tag. I am trying to pass a parameter to the function which gets used as this name attribute, but seem to be having problems with the square brackets. In t

RE: [PHP-WIN] date and time

2002-08-13 Thread Ross Fleming
See http://www.php.net/manual/en/function.mktime.php to make unix time stamps from the date/times. It's an integer denoting the number of seconds that have passed since the Unix Epoch (1/1/1970 0:00). The greatest integer is the later date/time Ross > -Original Message- > From: Sandeep

[PHP-WIN] date and time

2002-08-13 Thread Sandeep Murphy
hi, I have the date and time coming from 2 columns of 2 different tables.. What wud be the easiest way to get the greater of the two ??? so i hv to format the date and time ??? thnx, sands -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Newbie needs help.

2002-08-13 Thread Steve Jackson
Thanks all for your help, you all have probably saved me a lot of time. I now have IIS running PHP and XP running MySQL. I am using MySQLFront to develop the database etc. Thanks again. > -Original Message- > From: Werner Stuerenburg [mailto:[EMAIL PROTECTED]] > Sent: 13 August 2002 11:36

php-windows Digest 13 Aug 2002 12:32:54 -0000 Issue 1286

2002-08-13 Thread php-windows-digest-help
php-windows Digest 13 Aug 2002 12:32:54 - Issue 1286 Topics (messages 15215 through 15224): Re: progress bar 15215 by: Daniel Massón Re: Creating a zip through php 15216 by: Scott Carr 15217 by: Daniel Massón Executing rtf as php-script with IIS 15218 by: K

[PHP-WIN] newbie: XMLDOM

2002-08-13 Thread Baz Langton
Hi, I'm complete new to php and completely confused. my script so far includes $doc = domxml_new_doc("1.0"); $root = $doc->add_root("QUIZ"); $question=$root->new_child("QUESTION",""); which seem fine but when I try:- $q_element=$question->create_element("testElement"); OR $questionText=$questi