Re: [PHP] radio groups in looped form

2001-04-11 Thread Lindsay Adams
My question: are the groups all within different forms? does each for have a different name? don't know, something to try. On 4/11/01 5:05 PM, "Peter Houchin" [EMAIL PROTECTED] wrote: even though i am putting them in an array? like input type="radio" name="avail[]" value="y" ? if

[PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-11 Thread g0thic
Hi guys, Below is the error message that I am receiving, and 3 or 4 lines around the code that seems to be causing the issue. Lines are numbered so it gives you a good idea of line 183. What I need to know, is in my context, what is the error saying, and if there is a variable (or function

RE: [PHP] radio groups in looped form

2001-04-11 Thread SED
So far as I know, the HTML does not support arrays. However, you can make simple code that adds number to each group so you can refer to them later e.g.: $i = 0; while (your arguments) { echo "name=\avail$i\"; $i++; } And afterwards you can refer to it the same way

Re: [PHP] radio groups in looped form

2001-04-11 Thread Lindsay Adams
by this I mean, html code of the form: FORM NAME="form1" METHOD="post" ACTION="" INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton" INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton" INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton" INPUT TYPE="radio" NAME="radiobutton"

RE: [PHP] radio groups in looped form

2001-04-11 Thread SED
One thing I forgot to mention, you can of course name the group: avail[$i] (see below) so you will able to refer to it as an array in PHP file later on. -- So far as I know, the HTML does not support arrays. However,

Re: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-11 Thread Brian Clark
Hi g0thic, @ 8:17:24 PM on 4/11/2001, g0thic wrote: ... Fatal error: Call to a member function on a non-object in /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183 178- if($seditFileErr == "") 179- { 180-// Load primary key and form parameters 181-$fldf_id =

Re: [PHP] What is the syntax to get the HTTP_ENV_VARS?

2001-04-11 Thread Yasuo Ohgaki
Did you read PHP Manual? If you don't read online manual, I suggest to read it. Annotated manual is very useful. http://www.php.net/manual/en/language.variables.external.php Regards, -- Yasuo Ohgaki "Phil Labonte" [EMAIL PROTECTED] wrote in message

Re: [PHP] foreach vs. while(list() = each())

2001-04-11 Thread Yasuo Ohgaki
One apparent problem with foreach() is it can misbehave code as follows. (4.0.4pl1, 4.0.5RC6) function foo($a) { foreach ($a[0] as $k = $v) { echo $k.$v; } } $a = 'abc'; foo($a); You'll get 'server not found' or browser waiting forever with this code. (If you don't, please let me

php-general Digest 12 Apr 2001 01:35:22 -0000 Issue 622

2001-04-11 Thread php-general-digest-help
1. Sending username and password for authorisation in a protected area. This of course is done by browsers when they get a 401 and ask the user for their username and password in a dialog box. I would like to ask them for the d

Re: [PHP] checkdnsrr() in PHP 4.0.5rc1

2001-04-11 Thread Yasuo Ohgaki
If you are using Windows, no. (resolver does not work under windows) Regards, -- Yasuo Ohgaki "Jochen Kaechelin" [EMAIL PROTECTED] wrote in message NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern... What about this error: checkdnsrr() is not supported in

Re: [PHP] install LONG_MAX

2001-04-11 Thread Yasuo Ohgaki
Do you install Linux kernel source? and have correct symlink for kernel headers? Sounds like it's the cause to me. Regards, -- Yasuo Ohgaki ""Plamen Slavov"" [EMAIL PROTECTED] wrote in message 002a01c0c276$32b005e0$98d209c0@plamensl2">news:002a01c0c276$32b005e0$98d209c0@plamensl2... Hi all,

[PHP] array() stuff

2001-04-11 Thread Duke
I'm trying to create the following array: $host_info = array( "hostname" = "localhost" "log" = "rocketbox_db.log" "username" = $username "password" = $password "database" = "rocketbox" "table" = $table ); however when I try

Re: [PHP] array() stuff

2001-04-11 Thread Gfunk
Dude, you need commas between your array items. Gfunk - [EMAIL PROTECTED] - http://www.gfunk007.com/ - Original Message - From: "Duke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001

Re: [PHP] array() stuff

2001-04-11 Thread CC Zona
In article 000501c0c2f5$185e8e80$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Duke") wrote: I'm trying to create the following array: $host_info = array( "hostname" = "localhost" "log" = "rocketbox_db.log" "username" = $username "password" =

Re: [PHP] foreach vs. while(list() = each())

2001-04-11 Thread Lewis Bergman
One apparent problem with foreach() is it can misbehave code as follows. (4.0.4pl1, 4.0.5RC6) function foo($a) { foreach ($a[0] as $k = $v) { echo $k.$v; } } $a = 'abc'; foo($a); You'll get 'server not found' or browser waiting forever with this code. (If you don't,

[PHP] popup window

2001-04-11 Thread Dan Harrington
Hello, Does anyone have ideas about this kind of scenario? 1) Load a php page, based on whether a user is currently authenticated either: a) if not authenticated: pop up a new browser window or b) if already authenticated, proceed 2) Based on the login id of

Re: [PHP] foreach vs. while(list() = each())

2001-04-11 Thread Plutarck
I believe foreach also works on a copy basis, not a pointer or reference. So if you try and alter the array you are foreach'ing it won't work as expected. For instance this: $array = array("var1", "var2", "var3"); foreach ($array as $val) { if ($val == "var2") { $val = "changed2"; } }

Re: [PHP] timer in PHP

2001-04-11 Thread Plutarck
I'm guessing it's either for a Quiz script or an Auction script. If you want to make it easy on yourself, use a database to store the starting time (when the timer "starts") and what time the test/auction should end. When someome makes a submission, get the time stored in the database and see if

Re: [PHP] No new topic using reply please.

2001-04-11 Thread Plutarck
Better than the people who make a new thred by hitting Forward ;) -- Plutarck Should be working on something... ...but forgot what it was. ""Chris Lee"" [EMAIL PROTECTED] wrote in message 9b1rbb$mr3$[EMAIL PROTECTED]">news:9b1rbb$mr3$[EMAIL PROTECTED]... Accually, Ive noticed in Outlook

Re: [PHP] popup window

2001-04-11 Thread Plutarck
I know how to do popups with Javascript, but what I want is to use purely PHP. Is there a way to spawn a browser window from a server-side action? I'm afraid you'll have you use Javascript. The only way to make a new window is to use window.open, or to have someone click a link with the

[PHP] TIP: Making ALL your scripts work with register.globals turned off

2001-04-11 Thread Plutarck
I've been working on a way to strip invalid characters from user input with little or no need to rip the hair out of my head, and I learned some interesting things in the process. For one thing, hair really is stuck in there good, man. But the important thing is how to increase your global

[PHP] Case-Sensitivity with PHP and MySQL

2001-04-11 Thread midget2000x
I am writing a PHP script that operates on a MySQL database that uses the e-mail address as the primary key. If the e-mail doesn't exist in the database (when a form is submitted), I want to insert a new record. If it does, I want to update the existing record. How can I make the query that

Re: [PHP] Case-Sensitivity with PHP and MySQL

2001-04-11 Thread Plutarck
I had a similar question about case-sensitivity, and I was told that MySQL is automatically case-insensitive! But it depends on your version of MySQL. Go to the mysql manual and look at chapter 20.16 "Case sensitivity in searches". In the newest versions of MySQL, all searches are

Re: [PHP] Database result set question

2001-04-11 Thread Yasuo Ohgaki
Most PostgreSQL functions are wrapper functions for libpq. Reading documents about libpq will help. Answer to your question is, it does not read all data into memory. I think most DB doesn't do that also. Data will be buffered in PostgreSQL backend, size is depends on your configuration. I'm

Re: [PHP] System V Semaphores

2001-04-11 Thread Yasuo Ohgaki
It means your OS does not allocate enough resources. Linux: $ ipcs -l -s FreeBSD: $ ipcs -S Refer to your OS manual to change them. Regards, -- Yasuo Ohgaki ""Philip Murray"" [EMAIL PROTECTED] wrote in message

RE: [PHP] Newsgroups like this one?

2001-04-11 Thread Alvin Tan
Hi Plutarck, The 'mailing list' at MySQL _is_ very much like this one and is also very active. Send mail to [EMAIL PROTECTED] to subscribe. Regards, @lvin -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 11:40 AM To: [EMAIL PROTECTED] Subject:

[PHP] slashes added to template files

2001-04-11 Thread Franklin Hays
Apologies in advance if this has been discussed before or is a simple fubar on my part. I can only search through the archives for so long... :-) Experiencing a frustrating problem on this end with slashes being added to my template files. Here are the details: Using PHP on a webhost that

[PHP] uploading with ftp

2001-04-11 Thread David Minor
I'm getting this: "Warning: error opening in /path/to/file.php on line 32" Here's what I want to do, maybe I'm approaching it incorrectly? I need to collect multiple files via a form and upload them via FTP (can't use HTTP because I'm uploading to a different server). I collect them just

[PHP] Passing Parameter

2001-04-11 Thread Jack Sasportas
I have called from html a php form and passwd a value, but how can I from PHP pass the value to an html for, without using php ? Scenario After searching a db, a list of valid part numbers gets displayd from the Mysql db, the client picks part#2 and then that click would call the html form which

Re: [PHP] passthru

2001-04-11 Thread Dean Hall
"Michael Dickson" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On the server itself (to which I have root access) I type: someProgram arg1 arg2 arg3 and it runs properly, returning the proper output to standard output (the screen). I can do this from

Re: [PHP-CVS] cvs: pear /Science Chemistry.php /Science/Chemistry Atom.php Atom_PDB.php Coordinates.php Element.php Macromolecule.php Macromolecule_PDB.php Molecule.php Molecule_XYZ.php PDBFile.php PDBPa

2001-04-11 Thread Stig Sæther Bakken
[Andrei Zmievski [EMAIL PROTECTED]] On Tue, 10 Apr 2001, Derick Rethans wrote: hrm, is it really needed to add 3.6MB of stuff to the PHP cvs? Grr, I agree. Maybe it can wait until PEAR is out of PHP's CVS. Hey hey, take a closer look before reacting. This stuff _is_ out of PHP's CVS.

[PHP] syntax

2001-04-11 Thread Wade Halsey
Hi I need to name a file like this $fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w"); the file gets named echo $agentcodeCyberTrac.ctr, now I want a real value in $agentcode, there is a value in there so it must be my syntax, anyone help? TIA Wade

RE: [PHP] syntax

2001-04-11 Thread Jason Murray
I need to name a file like this $fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w"); the file gets named echo $agentcodeCyberTrac.ctr, now I want a real value in $agentcode, there is a value in there so it must be my syntax, anyone help? $fp=fopen($agentcode.'CyberTrac.ctr', "w"); Jason

<    1   2