RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
Hi If the checkbox exists in the array it is selected... if it isn't there it's not selected That's my experience :) -Original Message- From: zedleon [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 21:30 To: php-general@lists.php.net Subject: Re: [PHP] Help correcting a form mailer

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
] = on 1 and 3 are selected -Original Message- From: zedleon [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 21:30 To: php-general@lists.php.net Subject: Re: [PHP] Help correcting a form mailer problem... thanks for the reply... after using the print_r($_POST['gmev']); and selecting all

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
@lists.php.net Subject: Re: [PHP] Help correcting a form mailer problem... Sorry, I believe you are mistaken here... you *can* specify a value for each checkbox and have it come through. I have written scripts that do this, and here is another example: http://www.tizag.com/phpT/examples/formex.php/ all

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
: php-general@lists.php.net Sent: Wednesday, August 17, 2005 5:28 PM Subject: Re: [PHP] Help correcting a form mailer problem... Sorry, I believe you are mistaken here... you *can* specify a value for each checkbox and have it come through. I have written scripts that do this, and here is another

[PHP] Help Building Dynamic Checkboxes

2005-08-12 Thread zedleon
I am having an issue with building dynamic checkboxes.. They appeared to be working properly...but then all the checkboxes in the array are checking ater the initial checkbox is selected. I am building a sticky form to present the data. so anything checked in the HTML would be dynamically checked

[PHP] help with a bucle

2005-08-02 Thread Jesús Alain Rodríguez Santos
Hi, i have in my mysql db one table columm, some think like this: dayreporte ------ 145 256 478 689 790 etc... How can i print all the value from 'reporte' columm depending the 'day' columm, and if there is not exist a day print 0 value, for

Re: [PHP] Help with a Parse Error

2005-08-01 Thread Edward Vermillion
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... if ($_GET['id'] != ) { $article=$id.php; if (file_exists($article)) { include $article; }

[PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
I am trying to create my own news system and to start with I'm using static news pages until I get the db working properly. I'm using the following code: ?php if(!isset($_GET['id'])) { $article=$id.php if (file_exists($article)) { include $article; } else

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Edward Vermillion
Tom Chubb wrote: I am trying to create my own news system and to start with I'm using static news pages until I get the db working properly. I'm using the following code: ?php if(!isset($_GET['id'])) { $article=$id.php if (file_exists($article)) { include $article; } else { echo The

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... if ($_GET['id'] != ) { $article=$id.php; if (file_exists($article)) { include $article; }

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ; as it returns true, so I changed my code to use... the fact that you are using $id suggests you have register_globals on - not recommended practice.

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? Any ideas? On 31/07/05, Jochem Maas [EMAIL PROTECTED] wrote: Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? its a notice technically not an error. and its showing up because you have error reporting set to show notices. to be really purist/correct do it something like this: if

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: The purist method is what I wanted. dev'ing with E_ALL is a good thing, but turn off E_NOTICE on productions sites... IMHO in fact make sure your production sites don't output any php errors at all (even if they occur!), sure log them, but don't show - it makes it just a

[PHP] Help with Functions

2005-07-30 Thread Tom Chubb
I am trying to start using functions on some pages to layout a header row in a table. I have defined the function as below... ?php function (headerrow) { ? table width=750 border=0 cellpadding=0 cellspacing=0 bgcolor=#FF0066 tr td class=table_head?php echo $tablehead;

[PHP] help with print value

2005-07-30 Thread Jesús Alain Rodríguez Santos
Sorry for my english, i'm cuban, it's dificult for me explain that in english but I'll try: I have a table columns: month, day and value ||month||day||value 7 156 7 334 8 450 9 578 . . . . . . etc... I need to get the

Re: [PHP] Help with Functions

2005-07-30 Thread sub
variables are passed between functions? It's all in the call and definition. Andrew Darrow Kronos1 Productions www.pudlz.com - Original Message - From: Tom Chubb [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Saturday, July 30, 2005 9:23 AM Subject: [PHP] Help with Functions I am

Re: [PHP] Help with Functions

2005-07-30 Thread Rory Browne
You're declaring your function wrong. You're doing: function (function_name) You should be doing function function_name($arg1, $arg2, $arg3) // with as many comma seperated arguments as you want. or if you don´t want to pass any arguments function function_name() Try this out: function

Re: [PHP] Help with Functions

2005-07-30 Thread Tom Chubb
Thanks guys for all your help. I've managed to get it working. I tried calling the function from within the file and it turned out that somehow I had messed up my include statement. I understood about adding argument variables to the syntax, but I needed to add a text argument as I couldn't think

Re: [PHP] help with print value

2005-07-30 Thread Miles Thompson
You're talking about a table in a database, correct? Assuming the database is MySQL, you would: 1. open a connection to the database 2. execute a SQL select statement to fetch the data 3. process the results, formatting them into HTML. There are a number of tutorials on doing this, but it's

[PHP] help with ORDER BY query

2005-07-29 Thread Jesús Alain Rodríguez Santos
I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have all days of the month insert in day field: 1, 2, 3, 4, 5 ... when I print the query: if ($query_r = mysql_fetch_array($query)) { do { echo td width='8%'.$query_r['event']./td\n; }

RE: [PHP] help with ORDER BY query

2005-07-29 Thread Carlo Razzeto
-Original Message- From: Jesús Alain Rodríguez Santos [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 11:00 AM To: php-general@lists.php.net Subject: [PHP] help with ORDER BY query I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have

Re: [PHP] help with ORDER BY query

2005-07-29 Thread André Medeiros
if( mysql_num_rows( $query_r ) 0 ) { while( $currentResult = mysql_fetch_array( $query_r ) ) { // do something with the result. } } else { echo 'No results.'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with ORDER BY query

2005-07-29 Thread John Nichel
Jesús Alain Rodríguez Santos wrote: I have a query: $query = mysql_query(SELECT event FROM table WHERE month = 'x' ORDER BY day ASC); I have all days of the month insert in day field: 1, 2, 3, 4, 5 ... when I print the query: if ($query_r = mysql_fetch_array($query)) { -^

RE: [PHP] Help with a home-grown function

2005-07-26 Thread Ford, Mike
On 21 July 2005 22:19, Chris W. Parker wrote: 2. It will be a good idea to get out of the habit of breaking in and out of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost exclusively. In my 10,000s of lines of

[PHP] Help needed in changing row color

2005-07-26 Thread suma parakala
Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color. Can any one please help me Thanks regards Suma

Re: [PHP] Help with a home-grown function

2005-07-26 Thread Matthew Weier O'Phinney
* Ford, Mike [EMAIL PROTECTED] : On 21 July 2005 22:19, Chris W. Parker wrote: 2. It will be a good idea to get out of the habit of breaking in and out of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Dotan Cohen
On 7/26/05, suma parakala [EMAIL PROTECTED] wrote: Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color.

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Burhan Khalid
suma parakala wrote: Hi I am retrieving data from postgresql and displaying it in form of table in different rows. my problem is when check box is clicked i need to change the color of the row .agai when the check box is unclicked it should hold the old color. Can any one please help me

Re: [PHP] Help with a home-grown function

2005-07-22 Thread André Medeiros
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote: Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the

[PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the practice might be good for me. However, my function doesn't

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Mike Johnson
From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the practice

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Dan Trainor wrote: Mike Johnson wrote: From: Dan Trainor [mailto:[EMAIL PROTECTED] Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns true. If it doesn't find a

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Chris W. Parker wrote: Dan Trainor mailto:[EMAIL PROTECTED] on Thursday, July 21, 2005 2:03 PM said: I never see hi even if an array is set as such: $vars = array(one,two,three,four,five); That's because your function always returns true. If it finds a missing value it returns

[PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Can someone tell me where I can find some detailed instructions on how to install PHP on a Win2003 Server? I've tried to install it using the PHP instructions, but it doesn't seem to be working, think I'm missing something. Thanks.

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Jay Blanchard
[snip] Can someone tell me where I can find some detailed instructions on how to install PHP on a Win2003 Server? I've tried to install it using the PHP instructions, but it doesn't seem to be working, think I'm missing something. [/snip] Did you install Apache? -- PHP General Mailing List

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Jay Blanchard
[snip] No, this is on a IIS6 install [/snip] Have you read this... http://us2.php.net/manual/en/install.windows.iis.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Yes, I have looked at that info, but am still having a problem. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 12:39 PM To: Grosz, Steve (IPG IT); php-general@lists.php.net Subject: RE: [PHP] Help installing on Win2003 server? [snip

Re: [PHP] Help installing on Win2003 server?

2005-07-11 Thread John Nichel
Grosz, Steve (IPG IT) wrote: Yes, I have looked at that info, but am still having a problem. snip And that problem is? Error messages? Logs? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Subject: Re: [PHP] Help installing on Win2003 server? Grosz, Steve (IPG IT) wrote: Yes, I have looked at that info, but am still having a problem. snip And that problem is? Error messages? Logs? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Richard Lynch
On Mon, July 11, 2005 12:43 pm, Grosz, Steve (IPG IT) said: I get a message in the browser saying it can't find the file, will find standard .htm or .cfm files, but when I try to browse to a .php file, nothing. What is the EXACT error message?... An error message isn't nothing -- It's an

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-10 Thread Burhan Khalid
Brian Dunning wrote: I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: select count(*) as `count` from terms; My MySQL account was disabled by

RE: [PHP] Help - need to quickly optimize a record count!

2005-07-10 Thread Warren Vail
Khalid [mailto:[EMAIL PROTECTED] Sent: Sunday, July 10, 2005 12:21 AM To: Brian Dunning Cc: php-general@lists.php.net; mysql@lists.mysql.com Subject: Re: [PHP] Help - need to quickly optimize a record count! Brian Dunning wrote: I am cross-posting this to the PHP and the MySQL lists

[PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: select count(*) as `count` from terms; My MySQL account was disabled by my ISP because this

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
It is indexed, and it's fast, but nevertheless my ISP won't allow it any longer. At least not as often as I need it. On Jul 6, 2005, at 2:10 PM, Philip Hallstrom wrote: If you have an index on the terms table that query should return almost instantly... Anyway, I'd start there first...

[PHP] help, no jpeg support compiled in

2005-07-06 Thread Christopher J. Bottaro
Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build This is how I configured my php: ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs --with-gd --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib I also tried with /usr

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 1:43 pm, Brian Dunning said: I am cross-posting this to the PHP and the MySQL lists because I'm not sure in which technology my solution will lie. I have a pretty busy PHP/MySQL site that executes the following query a lot: Define a lot Every page hit? select count(*)

Re: [PHP] Help - need to quickly optimize a record count!

2005-07-06 Thread Brian Dunning
Hi Richard - like I said, whatever the merits of the situation, that's the query that the ISP is not permitting. As soon as I change that, they'll reactivate the account. The ISP is PowWeb if anyone else wants to take it up with them; I've already talked myself red in the face. On Jul

Re: [PHP] help, no jpeg support compiled in

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 5:42 pm, Christopher J. Bottaro said: Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build This is how I configured my php: ./configure --with-pgsql=/usr/local/postgres/ --with-apxs2=/usr/sbin/apxs --with-gd

[PHP] Help with preg_replace

2005-07-04 Thread Marcos Mendonça
Hi list I need help to solve a preg_replace() problem. I have a snippet of html code that contains some links. I have an array thats contains all links inside that snippet of html code. What i need to do is replace all the links in the code by another on. So this is what i´m trying to do:

Re: [PHP] Help with preg_replace

2005-07-04 Thread Jason Wong
On Tuesday 05 July 2005 02:21, Marcos Mendonça wrote: This works fine for links with id 0, 1 and 4. But i haven´t been able to figure out how to match and replace links with id 2 and 3. Works for me. Check whether $body_html really does contain what you're looking for in id 2 id 3. You may

[PHP] Help a Norwegian student!

2005-07-03 Thread Bjørn-Erik Dale
When I'm trying to open phpMyAdmin/index.php on my Apache server I get this text: kan ikke starte mysqli tillegget, vennligst kontroller PHP-konfigurasjonen witch is Norwegian for can not start the myswli extension, please check the PHP-configuration A link follows to:

Re: [PHP] Help a Norwegian student!

2005-07-03 Thread Richard Davey
Hello Bjørn-Erik, Sunday, July 3, 2005, 1:09:29 PM, you wrote: BED for can not start the myswli extension, BED please check the PHP-configuration A link follows to: BED http://localhost/phpMyAdmin/Documentation.html#faqmysql - [1.20] I receive the error cannot load MySQL extension, please BED

Re: [PHP] Help with image map problem...

2005-06-23 Thread Richard Lynch
On Wed, June 22, 2005 10:16 pm, Joey said: If I put this in the .php file, the results are as expected: Value: % echo $value; % If in the SAME file I put: map name=FPMap0 area href=display_status.php?searchby=cust_nosearch=1value=% echo $value % shape=rect coords=51, 1, 215, 34 /map I'm

[PHP] Help recognizing bots?

2005-06-22 Thread Brian Dunning
I'm using the following code in an effort to identify bots: $client = $_SERVER['HTTP_USER_AGENT']; if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos ($client, 'lurp') !strpos($client, 'msnbot')) { (Stuff that I do if it's not a bot) } But it doesn't seem to be catching a

Re: [PHP] Help recognizing bots?

2005-06-22 Thread Richard Lynch
On Wed, June 22, 2005 3:57 pm, Brian Dunning said: I'm using the following code in an effort to identify bots: $client = $_SERVER['HTTP_USER_AGENT']; if(!strpos($client, 'ooglebot') !strpos($client, 'ahoo') !strpos ($client, 'lurp') !strpos($client, 'msnbot')) { (Stuff that I do if

[PHP] Help with image map problem...

2005-06-22 Thread Joey
OK this is one of those crazy issues where blindness seems to set in, or some kind of issue. I seem to not be getting a value passed to a php script when trying to use the value within an image map. If I put this in the .php file, the results are as expected: Value: % echo $value; % If in the

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
PROTECTED] Sent: 08 June 2005 15:33 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] HELP! form validation I can see that being a very nice way of doing it. I will get on and give it a go this afternoon. Thanks so much for the speedy response! It just so happened that I, just last week

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
Hi Jim, Ive modified the code for the form by adding the style info vars to the relevant fields and set the var for the error style but for some reason the $error_var wont pick up the syle from $error_syle_var. Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 =

Re: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
]'; Jim Moseby Cc: php-general@lists.php.net Subject: RE: [PHP] HELP! form validation Hi Jim, Ive modified the code for the form by adding the style info vars to the relevant fields and set the var for the error style but for some reason the $error_var wont pick up the syle from

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 = $error_style; $error[]=*please enter your name\n;} snip! Does it re-populate the fields with the previously entered data? Yes, it does. I already have set the variables manually like you say. Its just the

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 15:49 To: '[EMAIL PROTECTED]'; php-general@lists.php.net Subject: RE: [PHP] HELP! form validation Eg: $error_style = 'color: rgb(255,0,0)'; if(!$name){$err1 = $error_style; $error[]=*please enter your name\n

[PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
Hi phpers, What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect entries (if that makes sense.) so the

Re: [PHP] HELP! form validation

2005-06-08 Thread Paul Waring
On 6/8/05, Dave Sayer [EMAIL PROTECTED] wrote: What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect

RE: [PHP] HELP! form validation

2005-06-08 Thread Jim Moseby
Hi phpers, What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect entries (if that makes

RE: [PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
-Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 15:18 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] HELP! form validation -Original Message- From: Dave Sayer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 9:58 AM To: php

Re: [PHP] Help with some OOP

2005-06-05 Thread Jochem Maas
JamesBenson wrote: Hello all, Ive been working with PHP for my websites for a few months, just attempted to build my own class, after reading all this stuff about automated robots and XSS attacks etc decided to step up security a bit, my result is an attempt to create a class for using the

[PHP] Help with some OOP

2005-06-03 Thread JamesBenson
Hello all, Ive been working with PHP for my websites for a few months, just attempted to build my own class, after reading all this stuff about automated robots and XSS attacks etc decided to step up security a bit, my result is an attempt to create a class for using the token method within

[PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread V Kam
Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload the 5

Re: [PHP] Help with using SPL to build a MySQL Iterator

2005-05-18 Thread Chris
V Kam wrote: Hello all I was trying to write an SPL Iterator for a MySQL result set but not having any luck. Specifically I'm not sure how to overload the key() and current/next() methods. Does anyone here have a working code sample that does this, or can offer some guidance on how to overload

Re: [PHP] Help!!! Cannot do Authentication

2005-05-13 Thread Richard Lynch
On Thu, May 12, 2005 9:27 am, K.S. TANG said: I have a page using the Basic HTTP Authentication and works well before. But this night, the server seems to not receiving any $_SERVER pass in from Web browsers. if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER'] !=

[PHP] Help!!! Cannot do Authentication

2005-05-12 Thread K.S. TANG
I have a page using the Basic HTTP Authentication and works well before. But this night, the server seems to not receiving any $_SERVER pass in from Web browsers. if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ($_SERVER['PHP_AUTH_USER'] != netop) || ($_SERVER['PHP_AUTH_PW'] != cti63) ) {

[PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Murray @ PlanetThoughtful
Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an example of a phrase' I'd like to be able to break that down to: this is an

Re: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Philip Hallstrom
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an example of a phrase' I'd like to be

RE: [PHP] Help with regex: breaking strings down to 'words' and 'phrases'

2005-05-10 Thread Murray @ PlanetThoughtful
On Wed, 11 May 2005, Murray @ PlanetThoughtful wrote: Hi All, I'd very much appreciate some help building a regular expression for preg_match_all that can differentiate between 'words' and 'phrases'. For example, say I have a string that contains: 'this is an example of a phrase'

[PHP] help formatting a mysql datetime variable

2005-04-29 Thread Bosky, Dave
I'm trying to get a mysql datetime variable called $cdate formatted so it will print: Thursday, April 28, 2005 at 8:00:00 PM Eastern Time I tried the following but it's not perfect. -- $newDate = date('I, F d, Y at g:i:s A T', $cdate); echo $newDate; --

Re: [PHP] help formatting a mysql datetime variable

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 7:38 am, Bosky, Dave said: I'm trying to get a mysql datetime variable called $cdate formatted so it will print: Thursday, April 28, 2005 at 8:00:00 PM Eastern Time I tried the following but it's not perfect. -- $newDate = date('I, F d, Y at

[PHP] help wanted for project

2005-04-28 Thread Mr R H
We have a web site and we need added functionality. We need a form developed which based on answers to three questions tells the patient which test he needs to buy. The purchast takes place via paypal code (already in place) and then another form is available for the patient to fill in a more

Re: [PHP] Help outputting an array?

2005-04-26 Thread Petar Nedyalkov
On Tuesday 26 April 2005 06:55, Brian Dunning wrote: Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this:

[PHP] Help outputting an array?

2005-04-25 Thread Brian Dunning
Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this: Array ( [PARAS] = Array ( [PARA] = Array

Re: [PHP] Help outputting an array?

2005-04-25 Thread Mark Sargent
Brian Dunning wrote: Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this: Array ( [PARAS] = Array (

Re: [PHP] Re:Re: [PHP] help for me about session

2005-04-24 Thread Steve Buehler
At 10:29 PM 4/23/2005, Josephson Tracy wrote: At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as following: - file1.php ? if($NextCourse == 1){ do something;} else($NextCourse ==){do something other } ?

Re: [PHP] Re:Re: [PHP] help for me about session

2005-04-24 Thread Josephson Tracy
I want to get the value of document.form1.NextCourse.value But I got the value of $NextCourse in last page. Steve Buehler [EMAIL PROTECTED] wrote: At 10:29 PM 4/23/2005, Josephson Tracy wrote: At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as

Re: [PHP] help for me about session

2005-04-24 Thread Richard Lynch
On Sat, April 23, 2005 7:35 pm, Josephson Tracy said: hi everyone, when i study php, i have a problem as following: - file1.php ? if($NextCourse == 1){ do something;} else($NextCourse ==){do something other } ? script language=javascript function hasNextCourse(){

RE: [PHP] Re:Re: [PHP] help for me about session

2005-04-24 Thread Warren Vail
PROTECTED] Sent: Sunday, April 24, 2005 8:27 AM To: Steve Buehler Cc: php-mailing-lists Subject: Re: [PHP] Re:Re: [PHP] help for me about session I want to get the value of document.form1.NextCourse.value But I got the value of $NextCourse in last page. Steve Buehler [EMAIL PROTECTED

[PHP] help with install to one page only

2005-04-24 Thread Lisa A
I need help with this please. I've just got a calendar script that was simple to upload the files. I was told to just add this code into the page ( I want the calendar to go: d)Add the following lines in the file where you want HEC (Event Calendar) to be displayed ?php include

Re: [PHP] help with install to one page only

2005-04-24 Thread Drewcore
lisa, i think your problem may be simple enough... but if this doesn't work, i dunno... i'm guessing that you're using some webhost right? well... Note: Your file should be present in the same folder where HEC/ is present E.g: ~/testcal.php [your file where you want to display event calendar]

[PHP] help for me about session

2005-04-23 Thread Josephson Tracy
hi everyone, when i study php, i have a problem as following: - file1.php - but when the 2ed access the file1.php the value of $NextCourse is the $NextCourse in the , Not the value of document.form1.NextCourse.value. could someone tell me

Re: [PHP] help for me about session

2005-04-23 Thread Steve Buehler
At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as following: - file1.php ? if($NextCourse == 1){ do something;} else($NextCourse ==){do something other } ? - but when the 2ed access the file1.php the value

Re: [PHP] help for me about session

2005-04-23 Thread Pedro Luis Cruz Riguetti
-- mierda carajo saquenme de sta lista de mierda q llema mi correo de huevadas rapido carjo.nierdas --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

[PHP] Re:Re: [PHP] help for me about session

2005-04-23 Thread Josephson Tracy
- Original Message - From: Steve Buehler To: Josephson Tracy ;php-mailing-lists Subject: Re: [PHP] help for me about session Sent: Sun Apr 24 10:54:34 CST 2005 > At 09:35 PM 4/23/2005, Josephson Tracy wrote: > > > >hi everyone, > >when i study php, i have a

[PHP] HELP!

2005-04-12 Thread
HI, Any body give me any hinder I would be very appreciated! I want to use a parameter of fist page in the second page, how can I realize it. For example, there is a segment in the first page: tr tdcom/tdtda href='/cgi-bin/english/E_new_domain_list.cgi?domainType=1'? echo $num_com;?/a/td

[PHP] HELP! HELP !

2005-04-12 Thread Justin Joe
HI, Any body give me any hinder I would be very appreciated! I want to use a parameter of the second page in the first page, how can I realize it. For example, there is a segment in the first page: tr tdcom/tdtda href='/cgi-bin/english/E_new_domain_list.cgi?domainType=1'? echo

Re: [PHP] HELP!

2005-04-12 Thread Stephen Johnson
The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ? From: [EMAIL PROTECTED] Date: Wed, 13 Apr 2005 11:00:36 +0800 To: php-general@lists.php.net Subject: [PHP] HELP! HI, Any body give me

Re: [PHP] Help with proper post method...

2005-04-06 Thread Lars B. Jensen
- From: Joey [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Wednesday, April 06, 2005 2:23 PM Subject: [PHP] Help with proper post method... OK I am migrating some sites from an old school server to one with MySQL 4 newest PHP, however certain things aren't running because

Re: [PHP] Help with proper post method...

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 10:23 pm, Joey said: OK I am migrating some sites from an old school server to one with MySQL 4 newest PHP, however certain things aren't running because of the register_globals variable on the new server is set to OFF for security reasons. What I am trying to do is

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx- Narrowed it down!

2005-04-05 Thread Satyam
What you see as round numbers in base 10, are not so in binary. Numbers such as .5, .25, .125, .0625 and so on, multiples of one half, are round numbers in binary, though they don't look so in decimal. Others which look pretty simple in decimal are not, for example, 0.1 gives you an infinite

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx

2005-04-05 Thread Rasmus Lerdorf
Anthony Tippett wrote: I'm having trouble figuring out why subtraction of two floats are giving me a very small number. I'm thinking it has something to do with the internals of type casting, but i'm not sure. If anyone has seen this or can give me some suggestions, please. I have 2 variables

<    5   6   7   8   9   10   11   12   13   14   >