Re: [PHP] Unable to upload multiple files

2003-02-01 Thread Antti
You don't even have a file form element, or an element named userfile so your FOR loop will never run... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ Yes I do. I just forgot to put it here. input class='nappi'

Re: [PHP] Introduction

2003-02-01 Thread SLanger
Hello Julie Have you checked what is passed in your post / get request??? A Simple way of doing this is using a script similar to this one ?PHP while(list($key, $value) = each($_POST)) // use $_GET for get request { echo 'br'.$key.'='.$value; // this prints to

Re: [PHP] Introduction

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 17:39, [EMAIL PROTECTED] wrote: Hello Julie Have you checked what is passed in your post / get request??? A Simple way of doing this is using a script similar to this one ?PHP while(list($key, $value) = each($_POST)) // use $_GET for get request

Re: [PHP] Strange_session-problem_with_php-file_in_img_src…

2003-02-01 Thread Victor Spång Arthursson
fredagen den 31 januari 2003 kl 18.08 skrev Chris Shiflett: Instead of trying to tell us what the problem is, just explain what trouble you are having. We can then tell *you* what the problem is. Could the problem have something to do with the fact that the function that returns the value

[PHP] question on listbox.

2003-02-01 Thread Denis L. Menezes
Hello friends. I have a listbox which I populate from a query with the database. It is working fine. But additinally, I want the first item to be Select category. Can someone please help me how to modify by below written code to do the above? My code : Quote : ?php //connecting to the

[PHP] Strange problem

2003-02-01 Thread Denis L. Menezes
Hello friends. I have the following script. Both the errors show green font when actually the first error should give a red font. Am I doing something wrong here? Quote: if($CategoryName==){ Print font color=\#FF\You have not entered the category name. Please go back and enter the

[PHP] Function Stack

2003-02-01 Thread Joshua Moore-Oliva
Is there any way to access the Function Stack from php? I would really like it for debugging, ala java style or C debugging style, where I could get a list of function like From afunction line 83 From bfunction line 179 From cfunction line 345 Error here.. If I could somehow access the

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 19:08, Denis L. Menezes wrote: Hello friends. I have a listbox which I populate from a query with the database. It is working fine. But additinally, I want the first item to be Select category. Can someone please help me how to modify by below written code to do

php-general Digest 1 Feb 2003 12:21:46 -0000 Issue 1857

2003-02-01 Thread php-general-digest-help
php-general Digest 1 Feb 2003 12:21:46 - Issue 1857 Topics (messages 133843 through 133865): Re: Delete files via PHP 133843 by: Jason Wong Re: another problem with 4.3.0 : imagecreatefromjpeg undefined 133844 by: Jason Wong 4.3 Install on Solaris 133845 by:

Re: [PHP] Function Stack

2003-02-01 Thread Matt
- Original Message - From: Joshua Moore-Oliva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 7:08 AM Subject: [PHP] Function Stack Is there any way to access the Function Stack from php? Not built in, but you could manually add statement to do it yourself.

Re: [PHP] question on listbox.

2003-02-01 Thread Matt
- Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 6:08 AM Subject: [PHP] question on listbox. Hello friends. I have a listbox which I populate from a query with the database. It is working fine. But

Re: [PHP] Strange problem

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 20:08, Denis L. Menezes wrote: Hello friends. I have the following script. Both the errors show green font when actually the first error should give a red font. Am I doing something wrong here? Quote: if($CategoryName==){ Print font color=\#FF\You

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-02-01 Thread Mike Potter
This worked perfectly. Thank you. As for the FAQ, I looked, but I guess not in the right place! Mike Tracy Finifter Rotton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Change the name of your checkboxes in your HTML to something like: name=DeleteIDs[]

Re: [PHP] Strange problem

2003-02-01 Thread Matt
- Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 7:08 AM Subject: [PHP] Strange problem I have the following script. Both the errors show green font when actually the first error should give a red

[PHP] PHP3 Web Architecture Framework

2003-02-01 Thread karthikeyan.balasubramanian
Hi, I browsed the web for many different web architecture and frameworks. I found many Interesting but all wants latest version of PHP at least PHP 4.0.6. I dont want to upgrade the PHP Version(4.0.5) that i have because many clients are using it and i dont want to mess it up. Its a Pain in

Re: [PHP] PHP3 Web Architecture Framework

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 20:23, karthikeyan.balasubramanian wrote: I browsed the web for many different web architecture and frameworks. I found many Interesting but all wants latest version of PHP at least PHP 4.0.6. I dont want to upgrade the PHP Version(4.0.5) that i have because

Re: [PHP] question on listbox.

2003-02-01 Thread Denis L. Menezes
Thanks Jason. Looks like I am too dumb. I still cannot do it. can u please help me further? Thanks Denis - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 8:21 PM Subject: Re: [PHP] question on listbox. On Saturday 01

Re: [PHP] Strange_session-problem_with_php-file_in_img_src…

2003-02-01 Thread Victor Spång Arthursson
Problem solved. The error came because I was calling the function inside another function, outside the latter it worked good. So I simply passed the variable with the second function - works great! Thanks anyway for all your time trying to help me! /V -- PHP General Mailing List

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 20:40, Denis L. Menezes wrote: Please don't top-post. Looks like I am too dumb. I still cannot do it. can u please help me further? I could write out the complete code for you -- but then I'll have to charge you for it :-) OTOH I can walk you through the process

[PHP] Time Delay?

2003-02-01 Thread OjMyStEr
Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like this: ?php function

[PHP] pause_script($int)??

2003-02-01 Thread OjMyStEr
Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like this: ?php function pause_script($int){

Re: [PHP] Time Delay?

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 21:27, OjMyStEr wrote: Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way

RE: [PHP] question on listbox.

2003-02-01 Thread Leonard Burton
Might this be better? print select name=category_selection\n; print option value=0Select Category/option\n //Query $sql=SELECT DISTINCT CategoryName From Categories ORDER BY CategoryName; $result=mysql_query($sql); if ($result) { While($Category=mysql_fetch_array($result)) {

Re: [PHP] pause_script($int)??

2003-02-01 Thread Stephan Seidt
what about sleep() ? OjMyStEr wrote: Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like

Re: [PHP] Function Stack

2003-02-01 Thread Michael Sims
On Sat, 1 Feb 2003 07:08:05 -0500, you wrote: Is there any way to access the Function Stack from php? Starting with PHP 4.3.0 you can use debug_backtrace(), which returns an array of caller stack information. You might want to build a wrapper around it which formats the information the way you

Re: [PHP] reading attachmentsl

2003-02-01 Thread Bartosz Matosiuk
hi well actually I know what is the mechanism of sending mime messages with atttachments works, the problem is that I don't know how to to read attachment. I tried to use Pear decode functions but it only gives me info that there are attachments in the message which is obviosly not enough.

Re: [PHP] Using custom button form element instead of standard submit?

2003-02-01 Thread Durwood Gafford
Durwood Gafford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... To make the issues more clear (assuming everyone's not totally burned out thinking about this one), I will submit links to working, example code in a followup post. I'm swamped with a proposal i'm

Re: [PHP] reading attachmentsl

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 23:21, Bartosz Matosiuk wrote: well actually I know what is the mechanism of sending mime messages with atttachments works, the problem is that I don't know how to to read attachment. I tried to use Pear decode functions but it only gives me info that there

[PHP] Calling other php scripts from inside a php script.

2003-02-01 Thread Jason Howlett
Hi, I am new to PHP and I am writing a script that evaluates input from a form then calls other PHP scripts depending on the input it receives. The login form is very simple and asks the user to enter a username and a password. It is used by two types of users, students and supervisors. In the

Re: [PHP] reading attachmentsl

2003-02-01 Thread Bartosz Matosiuk
hi thanks for advices I haven't ever heard about reformime, what is it? brtek - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 4:40 PM Subject: Re: [PHP] reading attachmentsl On Saturday 01

[PHP] Sort List But NOT After Date Has Passed.

2003-02-01 Thread Randum Ian
Hi guys, I have a script which looks in a directory, pulls out all the files and sorts them by reverse date order. The file name schema is mmdd-the rest of the file. Script: --- $interestingFile = array(); $interestingFiles = array(); $dir = opendir('/home/danceportal/www/uk/ian') or die(

[PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread CDitty
A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to do an insert to the database using these arrays? My array is

[PHP] Re: Calling other php scripts from inside a php script.

2003-02-01 Thread Greg Beaver
Hi Jason, ?php switch ($_REQUEST['username']) { case 'student' : include('student_script.php'); break; case 'supervisor' : include('supervisor_script.php'); break; } ? Better is to use $_POST if your form's method=post or $_GET if your form's method=get As long

RE: [PHP] Screen Size detect??

2003-02-01 Thread Nigel Powell
On a slight side note to this, how can you pass javascript variables to PHP via POST? Newbie Powell On Saturday, February 1, 2003, at 12:21 PM, [EMAIL PROTECTED] wrote: From: Sean Malloy [EMAIL PROTECTED] Date: Sat Feb 1, 2003 6:48:26 AM Europe/London To: Dade Register [EMAIL PROTECTED],

[PHP] select unique values from an array

2003-02-01 Thread Peter Gumbrell
I am attempting to populate form elements from a text file which has been read and split into arrays. Some of the items are repeated many times: grade level, for example. Is there a way of just selecting unique values so that each value is displayed only once in the check boxes or radio buttons?

[PHP] connecting to oracle 9i as user SYS

2003-02-01 Thread Lukas Smith
Hi, The topic says it all: How do you connect to oracle 9i as the user SYS? In the user comments about OCILogon() someone mentions that this is a little problematic with 9i, but doesn't really spell out the solution. Regards, Lukas Smith [EMAIL PROTECTED] ___

Re: [PHP] select unique values from an array

2003-02-01 Thread janet
In a message dated 2/1/2003 9:39:55 AM Pacific Standard Time, [EMAIL PROTECTED] writes: I am attempting to populate form elements from a text file which has been read and split into arrays. Some of the items are repeated many times: grade level, for example. Is there a way of just selecting

[PHP] File upload problem

2003-02-01 Thread Tomator
I tried but I can't upload any file. My form and code are as following: FORM METHOD=post TABLE TR TDFile:/TDTD INPUT TYPE=file SIZE=50 NAME=userfile/TD /TR TR TDnbsp;/TDTDINPUT TYPE=submit NAME=Submit VALUE=OKINPUT TYPE=submit NAME=Abort VALUE=Abort/TD /TR

Re: [PHP] Delete files via PHP

2003-02-01 Thread Miguel Brás
Hi, that's a negative They say that after uploading the file, the temp file on the tmp directory (usual) is deleted, anyway in order to confirm the deletion we should use unlink() function. Reading from one of the books, they say that the temp files are not deleted if a misconfiguration is

[PHP] Long Email - Array Problems Causing My Baldness

2003-02-01 Thread Guru Geek
Hello Everyone, I've been working on a small pet project of mine. It involves link management for my site. I want to be able to tell the program how many links to display from each of my link files. The program is then to go to that individual link file, randomly pick out how ever many links

RE: [PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread @ Nilaab
Yes Chris, When you add the item to the database, make sure to leave out the single quotes inside the brackets of the associative array. For example: Instead Of: $item['itemID'] Do This: $item[itemID] Example Query: $query = SELECT * FROM items WHERE '$item[itemID]'; Hope that helps.

RE: [PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread @ Nilaab
Oops, I forgot the double quotes at the end of the example query from the last email. This is how it should be: Example Query: $query = SELECT * FROM items WHERE '$item[itemID]'; -Original Message- From: @ Nilaab [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 1:00 PM

Re: [PHP] File upload problem

2003-02-01 Thread David Rice
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote: I tried but I can't upload any file. My form and code are as following: Try looking at: http://www.php.net/manual/en/features.file-upload.php There is a working example there. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Passing Variables

2003-02-01 Thread Beauford.2002
Hi, Is there a way to pass a variable to a PHP script without using a form? I want to put several links on my main page that when clicked on goes to a PHP script - depending on what link was selected, will determine what part of the PHP script gets executed. TIA, Beauford -- PHP General

Re: [PHP] Passing Variables

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Beauford.2002 wrote: Hi, Is there a way to pass a variable to a PHP script without using a form? I want to put several links on my main page that when clicked on goes to a PHP script - depending on what link was selected, will determine what part of the PHP script gets

[PHP] Re: MySQL/PHP Associative Array Insert

2003-02-01 Thread Thomas Seifert
On Sat, 01 Feb 2003 10:26:10 -0600 [EMAIL PROTECTED] (Cditty) wrote: A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to

[PHP] selecting items from an array

2003-02-01 Thread Peter Gumbrell
I have a text file which is read into an array $data using fgets(). The data is then split into further arrays by tab delimiter. I would like to find a way of extracting and printing items from $data using a form. The form fields (e.g. grade, subject) are populated from the arrays. When the user

[PHP] help needed building query string based on which form fields that are filled.

2003-02-01 Thread anders thoresson
Hi,   I've got a html form where not all fields need to be filled by the users. How can I build a MySQL query based on which fields the user have filled?   My guess is that I can do something like this:   if(!empty($f_name)) { some_commands_to_add_$f_name_to_querystring } if(!empty($l_name))

[PHP] any change to see php source?

2003-02-01 Thread qt
Dear Sirs, I am studying on php. And the book say, when the server see php extension it is running php file and giving results to the visiting browser. But as I see related directories are normal directory, doesn' t like cgi-bin directories. Is there any change to see php file source such as

Re: [PHP] Calling other php scripts from inside a php script.

2003-02-01 Thread Sunfire
it isnt that hard to do.. if you can get student and supervisor to successfully log into the web pages (even if you dont have anything to display) then all you really need to do is this: suppose that you had $user for username in the form and $password in the form for password... do this: /*after

Re: [PHP] any change to see php source?

2003-02-01 Thread Philip Olson
I am studying on php. And the book say, when the server see php extension it is running php file and giving results to the visiting browser. But as I see related directories are normal directory, doesn' t like cgi-bin directories. Is there any change to see php file source such as file

[PHP] using input tags with php

2003-02-01 Thread Sunfire
hi.. this is what i want to do but dont realy know how to do it... i want to set up a form that will load values from a table and make them the value of the edit box... then when people press an update button then all of the stuff that changes from the record already in the table gets changed...

[PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread CF High
Hey all. In cold fusion I was able to define a default value with the cfparam name = test default = myValue tag When I passed the variable test via a form or query string, it would over ride the parameter value. How can I do this in PHP? I looked in PHP manual for param, default, etc., but

[PHP] Installation Problem

2003-02-01 Thread fdo cruz
I'm trying to install PHP for my first time on a W2000 Server with IIS 5.0, I followed all instructions twice. I added on App Mappings the extension for PHP, etc. etc but always that I try to reach my PHP file I get only a blank page. FAQs say there's some problem with the Web Server and that

Re: [PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, CF High wrote: Hey all. In cold fusion I was able to define a default value with the cfparam name = test default = myValue tag When I passed the variable test via a form or query string, it would over ride the parameter value. How can I do this in PHP? I looked in

[PHP] Re: Need to set default parameter || How to do in PHP?

2003-02-01 Thread peio popov
to set default vale for $id you may use something like : $id = !empty($_GET[id])?$_GET[id]:null; Cf High wrote: Hey all. In cold fusion I was able to define a default value with the cfparam name = test default = myValue tag When I passed the variable test via a form or query string, it would

[PHP] Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
The following code is supposed to migrate data from an old database to a new one, but produces the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\convertdb.php on line 17 The code: ?php /* connect to database */ if(!($srcDB =

Re: [PHP] using input tags with php

2003-02-01 Thread janet
In a message dated 2/1/2003 12:52:24 PM Pacific Standard Time, [EMAIL PROTECTED] writes: i want to set up a form that will load values from a table and make them the value of the edit box... then when people press an update button then all of the stuff that changes from the record already in the

Re: [PHP] any change to see php source?

2003-02-01 Thread Chris Hayes
At 21:36 1-2-2003, you wrote: I am studying on php. And the book say, when the server see php extension it is running php file and giving results to the visiting browser. But as I see related directories are normal directory, doesn' t like cgi-bin directories. Is there any change to see

[PHP] Need an explanation as to what this line does...

2003-02-01 Thread Phil Powell
$stuffArray[$i][value] = strtr($stuffArray[$i][value], array_flip(get_html_translation_table(HTML_ENTITIES))); To be bluntly honest, I don't understand hardly any of it, and the PHP Manual isn't helping this time.. maybe I'm weekend-stupid or something.. *sigh* Phil

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Thomas Seifert
On Sat, 1 Feb 2003 13:28:00 -0800 [EMAIL PROTECTED] (Tim Lan) wrote: The following code is supposed to migrate data from an old database to a new one, but produces the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\convertdb.php on line

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
and by the way, the query on line 16 (the problematic one) works fine when run directly in MySQL. Tim Tim Lan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The following code is supposed to migrate data from an old database to a new one, but produces the

[PHP] Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
Sorry for the OT question: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a million times and never saw this.. Any

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Thomas Seifert
On Sat, 1 Feb 2003 13:28:00 -0800 [EMAIL PROTECTED] (Tim Lan) wrote: The following code is supposed to migrate data from an old database to a new one, but produces the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\convertdb.php on line

Re: [PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread Noah
Nice Phil. A little more typing than the CF version, but the more I delve into PHP, the more I realize its power and flexibility. Thanks for the speedy reply... --Noah - Original Message - From: Philip Olson [EMAIL PROTECTED] To: CF High [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
Thomas, I changed it so that the two connections use different username/password combination, and everything went smoothly. Thank you very much for your rapid response. Tim Thomas Seifert [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 1 Feb 2003

[PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Thomas Seifert
On 01 Feb 2003 16:47:23 -0500 [EMAIL PROTECTED] (Brian V Bonini) wrote: Sorry for the OT question: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to

Re: [PHP] using input tags with php

2003-02-01 Thread Sunfire
i tried getting the values into vars using fetch_array/fetch_object and fetch_row and tried to put them in variables but for some odd reason it really doesnt work because when i try to use the vars in the value section instead of printing in the edit box the content of the variable i usually end

[PHP] PHP.ini help on Linux

2003-02-01 Thread Nicole
I am having trouble doing things with PHP such as use the exec, system, etc. functions. I can't seem to find the correct php.ini to turn safe_mode off. The one file I did find has safe_mode turned off. When I view phpinfo() it shows the global column with safe_mode off, but for the local column,

RE: [PHP] Need an explanation as to what this line does...

2003-02-01 Thread John W. Holmes
$stuffArray[$i][value] = strtr($stuffArray[$i][value], array_flip(get_html_translation_table(HTML_ENTITIES))); To be bluntly honest, I don't understand hardly any of it, and the PHP Manual isn't helping this time.. maybe I'm weekend-stupid or something.. It converts HTML entities back to

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread John W. Holmes
I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a million times and never saw this.. So? Why does it matter to

Re: [PHP] using input tags with php

2003-02-01 Thread janet
In a message dated 2/1/2003 2:02:06 PM Pacific Standard Time, [EMAIL PROTECTED] writes: i tried getting the values into vars using fetch_array/fetch_object and fetch_row and tried to put them in variables but for some odd reason it really doesnt work because when i try to use the vars in the

Re: [PHP] using input tags with php

2003-02-01 Thread Sunfire
if i do this: /*all the mysql login stuff here*/ $query=mysql_query(select * from members); while($new=mysql_fetch_array($query)){ echo $new['company']; /*so on through the field list*/ } on output all i get is the title with a submit button..otherwise blank.. same thing with

[PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Hi, I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on line 3 the code related to this message is: ? // format MySQL DATETIME value into a more readable string

RE: [PHP] Redeclare formatdate

2003-02-01 Thread John W. Holmes
I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on line 3 the code related to this message is: ? // format MySQL DATETIME value into a more readable string

Re: [PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
On Sat, 2003-02-01 at 16:47, Thomas Seifert wrote: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a million

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
On Sat, 2003-02-01 at 17:25, John W. Holmes wrote: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a million

RE: [PHP] Redeclare formatdate

2003-02-01 Thread Jason Sheets
This is a good reason to use include_once and require_once. Jason On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on

Re: [PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Thx for the help... Miguel Jason Sheets [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is a good reason to use include_once and require_once. Jason On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: I have this message coming when calling the

[PHP] Re: PHP3 Web Architecture Framework

2003-02-01 Thread michael kimsal
Karthikeyan.Balasubramanian wrote: Hi, I browsed the web for many different web architecture and frameworks. I found many Interesting but all wants latest version of PHP at least PHP 4.0.6. I dont want to upgrade the PHP Version(4.0.5) that i have because many clients are using it and i dont

Re: [PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Thomas Seifert
On 01 Feb 2003 18:06:01 -0500 [EMAIL PROTECTED] (Brian V Bonini) wrote: On Sat, 2003-02-01 at 16:47, Thomas Seifert wrote: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but

Re: [PHP] using input tags with php (IMPORTANT READ)

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Sunfire wrote: if i do this: /*all the mysql login stuff here*/ $query=mysql_query(select * from members); while($new=mysql_fetch_array($query)){ echo $new['company']; /*so on through the field list*/ } on output all i get is the title with a submit button..

Re: [PHP] using input tags with php (IMPORTANT READ)

2003-02-01 Thread Sunfire
hi.. i took your idea... i put the error reporting code at the top of the script and ran it as the problem was still there to see what would happen.. instead i get 0 messages from the reporting system and all i get is the last 7 chars of the print line and the }? at the end of the script... so for

RE: [PHP] Screen Size detect??

2003-02-01 Thread Sean Malloy
index.htm script language=JavaScript function SubmitForm { document.myform.var.value = javascriptvalue; document.myform.submit(); } /script body onLoad='SubmitForm();' form name='myform' action='index.php' method='post' input type='hidden' name='var' value='' /form /body or something. I

Re: [PHP] Screen Size detect??

2003-02-01 Thread Martin
you can create a form with hidden fields like this script language=JavaScript document.screendata.height.value=screen.height; document.screendata.width.value=screen.width; screendata.submit(); /script form method=post action=index.php name=screendata input type=hidden name=height

Re: [PHP] using input tags with php

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Sunfire wrote: hi.. i took your idea... i put the error reporting code at the top of the script and ran it as the problem was still there to see what would happen.. instead i get 0 messages from the reporting system and all i get is the last 7 chars of the print line and

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread John W. Holmes
On Sat, 2003-02-01 at 17:25, John W. Holmes wrote: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a

[PHP] emulate callback error for php3

2003-02-01 Thread electroteque
hi sorry to ask so many questions but i have now realised that php3 doesnt handle the callback error handling so i can return the line and file of the error into a function is there a way to emulate this in php3 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Passing Variables

2003-02-01 Thread Beauford.2002
Perfect. Thanks. - Original Message - From: Philip Olson [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 2:22 PM Subject: Re: [PHP] Passing Variables On Sat, 1 Feb 2003, Beauford.2002 wrote: Hi, Is there a

[PHP] Base64 Encode

2003-02-01 Thread Stephen
I have a PHP script that works on older versions of PHP but on 4.3, it outputs nothing. Here's my code: ?php echo 'SCRIPT language=JavaScript type=text/javascript'.\n .\n.'if (document.location == top.location)'.\n .' top.location=home.php?goto='

[PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread James Kaufman
I am displaying a form using values obtained from a database query. One of the elements contains about 20 different values. I want the use to be able to select multiple values before pressing submit. This seems to work, but when my php script is called, all I see is the last data value assigned

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread John Nichel
Put empty square brackets (NAME='in_task_descr[]') after the name of your select element. Then all the slections will be in an array called... $_POST['in_task_descr'] or $_GET['in_task_descr'] Depending on your form method. James Kaufman wrote: I am displaying a form using values obtained

[PHP] Re: Register globals on and off

2003-02-01 Thread Pat Johnston
I've read that an include file in each of your pages with the lines below should do the trick for you with register_globals OFF.. Not sure if this is a valid way to go though... ?php extract($_SERVER); extract($_ENV); extract($_GET); extract($_POST); extract($_REQUEST);

[PHP] Re: 4.3 Install on Solaris

2003-02-01 Thread J Smith
Weston Houghton wrote: All, I seem to be getting a silly error on Solaris when trying to do a PHP 4.3 make. I get an error that looks to me like the liner arguments are just too long. to be honest, I'm a bit stupified as to why this is happening or how to fix it. FWIW, I have compiled

Re: [PHP] 4.3 Install on Solaris

2003-02-01 Thread Dan Lowe
On Friday, January 31, 2003, at 08:13 PM, Weston Houghton wrote: I seem to be getting a silly error on Solaris when trying to do a PHP 4.3 make. I get an error that looks to me like the liner arguments are just too long. to be honest, I'm a bit stupified as to why this is happening or how to

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 1:29:30 PM, you wrote: JK I am displaying a form using values obtained from a database query. JK One of the elements contains about 20 different values. I want the JK use to be able to select multiple values before pressing submit. JK This seems to work, but when my

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Jason Sheets
You could create a integer column with an autoincrement flag, then order the rows by this column, that should give you the data in the order it was inserted into the db. Depending on your database there are other ways to do it. Jason On Sat, 2003-02-01 at 18:07, John W. Holmes wrote: On Sat,

[PHP] Line Number function?

2003-02-01 Thread Benjamin Smith
PHP keeps track of what line# is being executed, so that when there's an error (say in pg_exec() ) it reports what line the error occured on. This appears to happen even during runtime (not just during compilation). For example: - ? $dbname=mydb; $dbuser=myuser;

Re: [PHP] using input tags with php

2003-02-01 Thread Sunfire
ok let me try this question thing again... i am having a problem using input tags by using current values kept in a mysql table. how do you get the values out of the table and into a form so they show as the value= part of the tag? i tried just aabout everything and it doesnt work even

RE: [PHP] Line Number function?

2003-02-01 Thread Steven Balthazor
I think what you are looking for is: __LINE__ See: http://www.php.net/manual/en/language.constants.predefined.php Cheers, Steven Balthazor -Original Message- From: Benjamin Smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 8:59 PM To: [EMAIL PROTECTED] Subject: [PHP]

  1   2   >