[PHP] When to call mysqli::close

2012-01-31 Thread Albert Kamau
Albert Kamau Saf : 0720550742

[PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-29 Thread Albert Wiersch
it is necessary... and pinging doesn't seem like a good idea either as some servers probably won't respond to pings. The localhost issue is interesting, but I don't see it as a security issue. I would like to know if there are any serious secirity issues I may be overlooking though. Thanks, Albert -- PHP

[PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Albert Wiersch
)... its like it doesn't even try to look up the name. -- Albert Wiersch Fix your website: http://onlinewebcheck.com Albert Wiersch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I noticed my script at http://onlinewebcheck.com was sometimes (fairly often) failing to open some URLs

Re: [PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Albert Wiersch
the file and restarting apache though, it seems like the reboot was necessary. I don't know why but so far do good. The root.hints file was also updated. I'm not sure if that had anything to do with it but it was updated in the process of trying to fix the problem. Albert -- PHP General Mailing

[PHP] fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
to open valid http addresses but works at other times? -- Albert Wiersch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Dec 27, 2007 11:31 AM, Albert Wiersch [EMAIL PROTECTED] wrote: Are the URLs being passed to fopen() properly escaped? Are they valid, complete with http:// placed before the domain? Try keeping a log of all

[PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
that is failing some of the time but not other times. -- Albert Wiersch Fix your website: http://onlinewebcheck.com Albert Wiersch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I noticed my script at http://onlinewebcheck.com was sometimes (fairly often) failing to open some URLs

Re: [PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
to 5.2.5 may have addressed this issue though. If not, then I'll concentrate on a possible DNS resolution problem. Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
Albert Wiersch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes, I have SSH access. I will keep that in mind. Upgrading to 5.2.5 may have addressed this issue though. If not, then I'll concentrate on a possible DNS resolution problem. Well, it seems to still be happening

[PHP] trouble with function openssl_csr_new()

2007-03-21 Thread Albert Kopka
use other function whitch supports repeated keys ? -- Albert Kopka [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
It's late and I've been at this a long time today so I throw myself on the mercy of the list. I have an echo statement that I use in conjunction with a MySQL query. echo tr\ntd class=\tabletext\ . $row['time'] . /td\ntd class=\tabletext\ . $row['field'] . /td\ntd class=\tabletext \ .

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
On Feb 3, 2007, at 9:09 PM, Christopher Weldon wrote: On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: It's late and I've been at this a long time today so I throw myself on the mercy of the list. I have an echo statement that I use in conjunction with a MySQL query. echo tr\ntd

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote: On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: I have an echo statement that I use in conjunction with a MySQL query. echo tr\ntd class=\tabletext\ . $row['time'] . /td\ntd class=\tabletext\ . $row['field'] . /td\ntd class= \tabletext

[PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
I have the following class that generates a Notice: Uninitialized string offset: 0 each time it is called. The lines generating the notice are marked. How do I fix this? class InputFilter { var $tagsArray; var $attrArray; var $tagsMethod; var $attrMethod;

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
Sure. $myFilter = new InputFilter('','',0,0); $_POST = $myFilter-process($_POST); BTW - for what I'm trying to do at the moment, if I change the first line to: $myFilter = new InputFilter(); it takes care of the Notice problem. Thanks. Al On Jan 6, 2007, at 12:36 PM, Dave Goodchild

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Albert Padley
Ah, of course. Thanks. Al On Jan 6, 2007, at 12:57 PM, Robert Cummings wrote: On Sat, 2007-01-06 at 12:43 -0700, Albert Padley wrote: Sure. $myFilter = new InputFilter('','',0,0); The first two parameters should be arrays (not strings as you have above). Cheers, Rob

[PHP] Dynamic Year Drop Down

2006-11-16 Thread Albert Padley
I want to build a select drop down that includes last year, the current year and 3 years into the future. Obviously, I could easily hard code this or use a combination of the date and mktime functions to populate the select. However, I'm looking for a more elegant way of doing this.

Re: [PHP] Dynamic Year Drop Down

2006-11-16 Thread Albert Padley
On Nov 16, 2006, at 11:04 PM, Tom Ray [Lists] wrote: Albert Padley wrote: I want to build a select drop down that includes last year, the current year and 3 years into the future. Obviously, I could easily hard code this or use a combination of the date and mktime functions to populate

Re: [PHP] Dynamic Year Drop Down

2006-11-16 Thread Albert Padley
16 November 2006 23:26, Albert Padley wrote: I want to build a select drop down that includes last year, the current year and 3 years into the future. Obviously, I could easily hard code this or use a combination of the date and mktime functions to populate the select. However, I'm looking

[PHP] For Loop

2006-06-20 Thread Albert Padley
? Thanks. Albert Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] For Loop

2006-06-20 Thread Albert Padley
Thanks everyone. Always nice to know there is more than one direction to go in. Albert On Jun 20, 2006, at 4:52 PM, Ray Hauge wrote: On Tuesday 20 June 2006 15:28, Adam Zey wrote: Ray Hauge wrote: On Tuesday 20 June 2006 15:14, Albert Padley wrote: I have a regular for loop - for($i=1

Re: [PHP] var_dump($POST)

2006-04-13 Thread Albert Padley
On Apr 13, 2006, at 12:16 AM, William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Try var_dump($_POST); Note the underline between $ and P. Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Proper OOP Syntax

2006-02-20 Thread Albert Padley
? Thanks. Albert Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Proper OOP Syntax

2006-02-20 Thread Albert Padley
Thank you Chris. Albert On Feb 20, 2006, at 5:00 PM, Chris wrote: Albert Padley wrote: Given the following code: $password = (strlen($this-user_pw) 32) ? md5($this-user_pw) : $this-user_pw; $sql = sprintf(SELECT COUNT(*) AS test, TeamID FROM % s WHERE BINARY login = '%s

RE: [PHP] How to output multiple tables nicely(!) from PHP in Excelformat?

2006-02-08 Thread Albert
/browse/package/2037.html). Not sure if it support tabs though but you can change the column sizes, row sizes and formatting of cells. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date: 2006/02/07

RE: [PHP] LIMIT?

2006-02-06 Thread Albert
SELECT * FROM table LIMIT 95,18446744073709551615; HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 2006/02/04 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Till Drawers

2006-02-03 Thread Albert
utility in C which opens your cash drawer. When you need to open the drawer you run the application from the PHP script using exec(). Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/249 - Release Date: 2006/02/02 -- PHP

[PHP] Unique Names for Variable in Loop

2006-02-02 Thread Albert Padley
I must be brain dead today since I can't get my syntax correct. Simple MySQL query to return a list of last_name. No problem. Each last name returned needs to be assigned to a unique variable like name1, name2, name3, etc. Somebody just kick me in the right direction. Thanks. Al Padley

Re: [PHP] Unique Names for Variable in Loop

2006-02-02 Thread Albert Padley
Yes, that's it. Thanks for the swift kick. AP On Feb 2, 2006, at 12:37 PM, Jim Moseby wrote: I must be brain dead today since I can't get my syntax correct. Simple MySQL query to return a list of last_name. No problem. Each last name returned needs to be assigned to a unique variable like

RE: [PHP] Passing Credentials

2006-02-01 Thread Albert
a missing ;. This is probably your parse error. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 2006/01/31 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] image uploads

2006-01-31 Thread Albert
? Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 2006/01/31 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] this line throws up an undefined index.

2006-01-30 Thread Albert
are executing a script on the command line it will not exist. Try using argc and argv for that. The filename is typically argv[0]. isset($_SERVER['SCRIPT_FILENAME']) will return true if the index exist. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375

RE: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Albert
Gregory Machin [mailto:[EMAIL PROTECTED] Hi I'm looking for a good example of writing multidimensional arrays, and reading them back . http://za2.php.net/manual/en/function.serialize.php and http://za2.php.net/manual/en/function.unserialize.php Call serialize() when saving the array to the

[PHP] Vbulletin question

2006-01-30 Thread Albert Peschar
Hi. I have a small question ;-). I have a PHP script. I want that script to check if a visitor is logged in, in Vbulletin. I know somebody who did this but he says he doesn't has time to explain. So if a visitor is logged in, in the vbulletin forum and he visits my PHP script, that script has

RE: [PHP] Retrieve output from HTML or PHP file

2006-01-29 Thread Albert
inside it and output the HTML... If you want to get the contents into a variable then do something like: ? ob_start(); include(file.html); $fileContent = ob_get_contents(); ob_clean(); ? Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus

RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Albert
are absolutely 100% certain that it is not your scripts, start looking at the differences between what you have and what your ISP provides. Alternatively test it on another server as well. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database

RE: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Albert
for assistance on setting this up. If you run your own mail server look at the docs. If you want to use PHP for this (not recommended because the mail server can do it already) you need to write a script which check email on one account and then email it to the other accounts. Albert -- No virus found

RE: [PHP] Re: query problem.

2006-01-24 Thread Albert
it as an HTML tag and not display it. Have a look at htmlentities() or replace the and with lt; and gt; HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/238 - Release Date: 2006/01/23 -- PHP General Mailing List (http

RE: [PHP] Help with getting PHP to see Pear.

2006-01-23 Thread Albert
bcmath I had to uncomment the extension=bcmath.so line in /etc/php.ini Check that phpinfo() outputs bcmath. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/238 - Release Date: 2006/01/23 -- PHP General Mailing List

RE: [PHP] New identification after an error...

2006-01-20 Thread Albert
']; if (strcmp($inUser, 'me') == 0 strcmp($inPWD, 'me') == 0) { echo logged in; } else { header('WWW-Authenticate: Basic realm='._PRODNAME.''); header('HTTP/1.0 401 Unauthorized'); echo You are not authorized to enter this page; } } ? HTH Albert -- No virus found

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-19 Thread Albert
suppliers have been encoded with Zend Safeguard. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.20/234 - Release Date: 2006/01/18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] PHP load to high on server

2006-01-19 Thread Albert
Richard Lynch wrote: On Tue, January 17, 2006 11:18 pm, Albert wrote: The page having the heaviest load uses 5 simultaneous sessions - they refresh every 5 seconds. Even with just one connection there are 16 Apache threads running all occupying between 5 and 20% of CPU. Are you saying

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Albert
is faster...) but it seems that the mmCache project has been abandoned as there have been no work done on it since 2003. Can someone confirm this or recommend an alternate cache (doesn't have to be free but should break the bank) which will do what I want? Albert -- No virus found in this outgoing

[PHP] PHP load to high on server

2006-01-17 Thread Albert
having the heaviest load uses 5 simultaneous sessions - they refresh every 5 seconds. Even with just one connection there are 16 Apache threads running all occupying between 5 and 20% of CPU. Does anyone have an idea of what I can do (short of recoding)? TIA Albert From our Apache log

RE: [PHP] mail not sent to certain mail accounts

2006-01-16 Thread Albert
) when sending email as it does most of the hard work for you. Albert PS List replies only please! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regex help

2006-01-13 Thread Albert
'; $split1 = explode('E', $unit); list($panel, $width, $height) = explode('X', $split1[1]); Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 2006/01/12 -- PHP General Mailing List (http://www.php.net

RE: [PHP] Parsing a large file

2006-01-13 Thread Albert
log files to read through. Anyone have some suggestions? Is this on a Linux server? Why don’t you use grep? cat filename | grep string newfile see man grep for detail on grep. (It uses regular expressions) Albert -- No virus found in this outgoing message. Checked by AVG Free Edition

RE: [PHP] transferring db info

2006-01-12 Thread Albert
to a Linux machine and vice versa without any issues. There is a note in the MySQL documentation of the formatting your Windows server should use (to do with case sensitivity) HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database

RE: [PHP] Image size?

2006-01-11 Thread Albert
William Stokes wrote: Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? http://www.php.net/manual/en/function.getimagesize.php HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version

RE: [PHP] Browser on server doesn't refresh

2006-01-10 Thread Albert
, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Cache-Control: private); header(Pragma: no-cache); ? It will tell any caching server and/or browser not to cache the page Albert PS List replies only please! -- No virus found in this outgoing message

RE: [PHP] Sending mail with php-

2006-01-10 Thread Albert
parameter. In PHP documentation] ?php mail([EMAIL PROTECTED], the subject, $message, From: [EMAIL PROTECTED]'SERVER_NAME']}, [EMAIL PROTECTED]'SERVER_NAME']}); ? [/quote] HTH Albert PS List replies only please! -- No virus found in this outgoing message. Checked by AVG Free Edition

RE: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread Albert
to the same format as your timestamp column: $timestamp = date('Y-m-d H:i:s', $olderThan72Hours); Delete the records from the table: mysql_query(DELETE FROM table WHERE timestamp = '$timestamp') or die('Could not delete from table'); HTH Albert -- No virus found in this outgoing message. Checked

RE: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-10 Thread Albert
I wrote: Delete the records from the table: mysql_query(DELETE FROM table WHERE timestamp = '$timestamp') or die('Could not delete from table'); That query should be DELETE FROM table WHERE timestamp = '$timestamp' Sorry about that. Albert -- No virus found in this outgoing message

RE: [PHP] Sending mail with php-

2006-01-10 Thread Albert
/package/264.html) It has made my life a lot easier. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 2006/01/09 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Case-Insensitive include on linux.

2006-01-10 Thread Albert
Mathijs wrote: Is there a way to have include() be case-insensitive? Linux file systems are case sensitive. The include() and require() functions try to open the file specified. If you enter the wrong case the file system will return that the file does not exist. Albert -- No virus found

RE: [PHP] Setting cookie for two domains.

2006-01-05 Thread Albert
invalidate the session id in a database. If you do this you need to check if the session id is still valid when you open a page. The actual session data should then be in a database (or similar) accessible by both domains. Hope it helps Albert List replies only please!! -- No virus found

RE: [PHP] download not working

2005-12-28 Thread Albert
to someone from the outside but accessible by the user Apache was running as. Then by reading the content from the file with PHP and outputting in a similar method as you are using. Hope it helps Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus

RE: [PHP] download not working

2005-12-28 Thread Albert
Ross wrote: $query= SELECT * FROM publications WHERE alphabet='a'; $result= mysql_query($query); while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ $row['pdf_size'] = $row['pdf_size']/ 1024; $row['pdf_size']= number_format($row['pdf_size'], 0); $size= $row['pdf_size'];

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
not an issue with PHP but with the browser. HTH Albert (PS List replies only please!) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.5/212 - Release Date: 2005/12/23 -- PHP General Mailing List (http://www.php.net

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
- - [23/Dec/2005:14:25:43 +0200] GET /test/page3.php HTTP/1.1 200 32 127.0.0.1 - - [23/Dec/2005:14:25:48 +0200] GET /test/page2.php HTTP/1.1 200 19 127.0.0.1 - - [23/Dec/2005:14:25:48 +0200] GET /test/page1.php HTTP/1.1 200 19 This is either a Browser or an OS issue. Not a PHP/Apache issue. Albert

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
David Hall wrote: Albert wrote: same server at the same time. Don't know where to change it in Mozilla. type about:config in browser window network.http.max-persistent-connections-per-server in the line the default value is 2, so I think that's our answer Yes it resolved the issue

RE: [PHP] a quick one, self submitting jump menu

2005-12-22 Thread Albert
Ross wrote: How can I self submit a page whne registered globals are off. Is there a way to use $_SERVER? Try $_REQUEST. If the values are send using POST then $_POST If the values are send using GET then $_GET Albert -- No virus found in this outgoing message. Checked by AVG Free

RE: [PHP] FW: Merging two images (GD PNG)

2005-12-01 Thread Albert
. The transparent background allows for the satellite image to show through. Any suggestions are welcome. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30 -- PHP General Mailing List (http

RE: [PHP] $_POST returns Array when getting data from multiple dropdown

2005-12-01 Thread Albert
as $key = $tempvalue) { if (is_array($arrayWithValues[$key])) { $tmpVal .= getValues($arrayWithValues[$key], $key); } else { $tmpVal .= $pre.$key.=.$tempvalue.; } } return $tmpVal; } $cVariable = getValues($_POST); print $cVariable; ? Hope it helps Albert -- No virus

RE: [PHP] FW: Merging two images (GD PNG)

2005-12-01 Thread Albert
. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Howto search in SQL for a specific character?

2005-11-30 Thread Albert
some data into the table: mysql INSERT INTO tablename (id, name) VALUES (NULL, '\'Albert'); Query OK, 1 row affected (0.00 sec) mysql INSERT INTO tablename (id, name) VALUES (NULL, '\'Piet'); Query OK, 1 row affected (0.00 sec) mysql INSERT INTO tablename

[PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Albert
of imagecopymerge? Should I be using different values for the pct value of imagecopymerge or is there an alternative method which will do what I want to be done? It seems to me that the palette used in the top image is not merged with the palette used in the satellite image. Albert -- No virus found

RE: [PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Albert
Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. Albert -- PHP General Mailing List

RE: [PHP] Database Class Help

2005-11-30 Thread Albert
which last beyond the end of the script. Hope it helps Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Nested IFs Problem

2005-08-31 Thread Albert Padley
if statements are true, I always get the correct Success to echo. However, if any or all of the if statements are false, I never get Failed to echo. I know it's something simple, but I just can't see it at the moment. TIA Albert Padley -- PHP General Mailing List (http://www.php.net

[PHP] Re: [SPAM] - [PHP] Nested IFs Problem - Bayesian Filter detected spam

2005-08-31 Thread Albert Padley
Justin Jordan, Thanks. The was what I needed. Albert Padley On Aug 31, 2005, at 2:27 PM, Justin Francis wrote: Albert Padley wrote: I have the following nested ifs: if ($row['date'] '2005-10-02') { if ($row['time'] '12:00') { if ($row['field'] == 'P5

Re: [PHP] Validating Dynamic Checkboxes

2004-08-07 Thread Albert Padley
insofar as it throws up the javascript alert, but then submits the form anyway. I don't see how your new function incorporates the loop to build $jscondition. Thanks for any further input. I think I need to get some sleep. Albert Padley On Aug 6, 2004, at 11:39 PM, Jason Paschal wrote: make ur

[PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
appreciated. Thanks. Albert Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
Jason, Thanks. That seems to build the javascript string, but unfortunately the form doesn't validate. In other words, if I leave all the checkboxes unchecked the results page still is returned. Perhaps there is a problem with the javascript? Any ideas? Albert Padley On Aug 6, 2004, at 10:02 PM

Re: [PHP] Re: Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
On Aug 6, 2004, at 10:39 PM, Manuel Lemos wrote: Hello, On 08/07/2004 12:49 AM, Albert Padley wrote: I have a php/mysql script that returns a series of records to populate a form. The number of records returned varies from 1 to as many as 100. On the display page, each record has a checkbox

[PHP] Regex (Phone Number)

2004-07-25 Thread Albert Padley
(Windows and Mac) and the only one that throws the runtime error is IE on the Mac. All others catch the errors I am trying to trap for with no runtime errors. Can this regex be improved on or do I have to live with the idiosyncratic behavior of Mac IE? Thanks. Albert Padley

Re: [PHP] Update Multiple Records From Form

2004-05-28 Thread Albert Padley
On May 28, 2004, at 3:50 AM, Ford, Mike [LSS] wrote: On 28 May 2004 04:47, Albert Padley wrote: I feel I'm so close. I have a form with multiple database records with a checkbox to indicate which records to update set up like so: $name = ed[ . $row['id'] . ]; input type=\checkbox\ name=\ . $name

[PHP] Update Multiple Records From Form

2004-05-27 Thread Albert Padley
. What tweak do I need to make? Thanks. Albert Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
IN (' . implode(',', addslashes($del)) . '); This one produces a warning: Warning: implode(): Bad arguments. and the following query: DELETE FROM ref_events_reg WHERE id IN ('') Both attempts fail to delete any records even though several records are checked. Where have I gone wrong? Thanks. Albert

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
On May 26, 2004, at 8:01 PM, John W. Holmes wrote: Albert Padley wrote: I've checked the archives and several other sources, but still can't seem to make this work. I have a form with checkboxes to designate records to be deleted from the mysql database. The pertinent form code is: input type

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
WHERE id IN ('') AP Both attempts fail to delete any records even though several records AP are checked. AP Where have I gone wrong? AP Thanks. AP Albert Padley change it to input type=\checkbox\ name=\del[$row['id']]\ value=\Y\ Then you can do something like foreach($del as $id=$val

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
On May 26, 2004, at 11:16 PM, Curt Zirzow wrote: * Thus wrote Albert Padley ([EMAIL PROTECTED]): input type=\checkbox\ name=\del[]\ value=\ . $row['id'] . \ The processing code is: if (count($del) 0){ for ($i=0;$icount($del);$i++){ $query = DELETE FROM

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
On May 26, 2004, at 11:17 PM, Albert Padley wrote: On May 26, 2004, at 11:16 PM, Curt Zirzow wrote: * Thus wrote Albert Padley ([EMAIL PROTECTED]): input type=\checkbox\ name=\del[]\ value=\ . $row['id'] . \ The processing code is: if (count($del) 0){ for ($i=0;$icount($del);$i

[PHP] textarea form input converting lt; and gt; to

2002-02-20 Thread Byron Albert
=Submit /form br what you typed br ? echo $test; ? /body /html -- Byron Albert[EMAIL PROTECTED] System Engineer Internet.com a Division of INT Media Group 203-662-2848

[PHP] mail() extra headers not working

2001-11-01 Thread Byron Albert
Hello, I am trying to ad extra headers to email's I am sending through php. I want to ad Reply-To: and Bounse-To: addresses. But when add them useing the forth feild of the mail() funtion. mail($recipient,$msubject,$message,Reply-To: $sender); but for some reason when I send this e-mail it

[PHP] Problems with POST form. Page Not Found

2001-07-25 Thread Antonio Mármol Albert
the type .html associated with the php engine. And I need to use the url of action in long format (http://.) Anybody with the same problem?? Best regards -- Antonio Mármol Albert ( [EMAIL PROTECTED] ) http://www.infurma.es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Problem with gettext support - Solaris 2.7

2001-01-18 Thread Albert Novak
for it? Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-I18N] Problem with gettext suporrt - Solaris 2.7

2001-01-18 Thread Albert Novak
for it? Albert -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]