[PHP] When to call mysqli::close

2012-01-31 Thread Albert Kamau
e the statement"; } return $message } Kind regards Albert Kamau Saf : 0720550742

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

2007-12-29 Thread Albert Wiersch
s a security issue. I would like to know if there are any serious secirity issues I may be overlooking though. Thanks, 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-28 Thread Albert Wiersch
x27;t seem to work after just changing 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

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

2007-12-28 Thread Albert Wiersch
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

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 reso

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

2007-12-27 Thread Albert Wiersch
e 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. Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 (

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 h

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

2007-12-27 Thread Albert Wiersch
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

[PHP] trouble with function openssl_csr_new()

2007-03-21 Thread Albert Kopka
$dn to function ... (using other structure ... or formated string ... ) or mayby I can 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

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 "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field

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 &

[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 "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\">" . $row['division'] . "\n"; This works perfectly f

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

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 wrot

[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] Dynamic Year Drop Down

2006-11-16 Thread Albert Padley
have the redundant value attribute in there, otherwise some Javascript things don't work right in IE. Good habit to get into.) I don't think it can really get more simple and elegant. On Thursday 16 November 2006 23:26, Albert Padley wrote: I want to build a select drop down that

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

[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. Thank

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

[PHP] For Loop

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

Re: [PHP] var_dump($POST)

2006-04-12 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

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 WH

[PHP] Proper OOP Syntax

2006-02-20 Thread Albert Padley
} How would I set a session variable for the value of TeamID? Thanks. Albert Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-02-08 Thread Albert
l Writer (http://phpclasses.fonant.com/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 Da

RE: [PHP] LIMIT?

2006-02-06 Thread Albert
ment retrieves all rows from the 96th row to the last: mysql> 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 --

RE: [PHP] Till Drawers

2006-02-03 Thread Albert
a command line 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

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

[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] Passing Credentials

2006-02-01 Thread Albert
will see 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/unsub.php

RE: [PHP] image uploads

2006-01-31 Thread Albert
your server? Why not limit it to 512KB? 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

[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 to

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

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

2006-01-30 Thread Albert
ting 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

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

2006-01-29 Thread Albert
e correct. Why don't you include the file? PHP will parse the PHP inside it and output the HTML... If you want to get the contents into a variable then do something like: Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 2

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

2006-01-25 Thread Albert
Contact your ISP 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. Al

RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Albert
the same. If you 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. V

RE: [PHP] Re: query problem.

2006-01-24 Thread Albert
interpret it as an HTML tag and not display it. Have a look at htmlentities() or replace the < and > with < and > 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 G

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

2006-01-23 Thread Albert
To enable 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 M

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

2006-01-20 Thread Albert
SER"] is already set). > I've tried : > $_SERVER["PHP_AUTH_USER"] = NULL; > without succes... > > Do you have a clue ? HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 2006/01/19 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 betwee

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

2006-01-19 Thread Albert
use APC as some of the modules we use from third party 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:

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

2006-01-18 Thread Albert
ache site mmCache 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 vir

[PHP] PHP load to high on server

2006-01-17 Thread Albert
e 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. Does anyone have an idea of what I can do (short of recoding)? TIA Albert >From our A

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

2006-01-16 Thread Albert
es.org/browse/package/264.html) 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] Parsing a large file

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

RE: [PHP] Regex help

2006-01-13 Thread Albert
42 X 70 3/8'; $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 -- PH

RE: [PHP] transferring db info

2006-01-12 Thread Albert
al. BTW you can transfer MySQL data files from a Windows machine 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. Chec

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. V

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] Sending mail with php-

2006-01-10 Thread Albert
ses.org/browse/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 unsubscrib

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 tha

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

2006-01-10 Thread Albert
Convert 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'); H

RE: [PHP] Sending mail with php-

2006-01-10 Thread Albert
ers and setting an additional command line parameter. In PHP documentation] [/quote] 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.16/225 - Release Date: 2006/01/09 -- PHP General Mailing

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

2006-01-10 Thread Albert
> in Apache that would cause the page not to refresh? It sounds to me that there is a caching problem somewhere. Try adding the following to the top of the page: It will tell any caching server and/or browser not to cache the page Albert PS List replies only please! -- No virus found i

RE: [PHP] Setting cookie for two domains.

2006-01-05 Thread Albert
e or simply 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 fo

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= $r

RE: [PHP] download not working

2005-12-28 Thread Albert
ssible 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

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

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
.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 -- 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/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP interference in frames

2005-12-23 Thread Albert
for the second page and starts downloading it. After one of these two have downloaded it start downloading the third page. If you change the setting in the browser (like I did with IE) you can download up to that number of pages at the same time. It is therefore not an issue with PHP but with the

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 AV

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

2005-12-01 Thread Albert
should. 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] $_POST returns Array when getting data from multiple dropdown

2005-12-01 Thread Albert
yWithValues[$key])) { $tmpVal .= getValues($arrayWithValues[$key], $key); } else { $tmpVal .= $pre.$key."=".$tempvalue."&"; } } return $tmpVal; } $cVariable = getValues($_POST); print $cVariable; ?> Hope it helps Albert -- No virus found in t

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

2005-12-01 Thread Albert
sparent background. 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 Gen

RE: [PHP] Database Class Help

2005-11-30 Thread Albert
true for new_link. The downside of this is that you do not have persistent connections 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: 200

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 blac

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

2005-11-30 Thread Albert
top image is not merged with the palette used in the satellite image. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/188 - Release Date: 2005/11/29 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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

2005-11-30 Thread Albert
-> `name` char(20) default '0', -> PRIMARY KEY (`id`) -> ); Query OK, 0 rows affected (0.06 sec) ** Then insert some data into the table: mysql> INSERT INTO tablename (id, name) VALUES (NULL, '\'Albert');

[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'] < &#x

[PHP] Nested IFs Problem

2005-08-31 Thread Albert Padley
echo "Failed"; } Whenever the 3 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 mome

Re: [PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
edit checkbox before submitting this form.');<br> return false;<br> }<br> }<br> Remember that the above works 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 $js

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 to

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:

[PHP] Validating Dynamic Checkboxes

2004-08-06 Thread Albert Padley
east one record before submitting this form.'); event.returnValue=false; } } This is the line I need to build dynamically: if (!(mainform.ed[0].checked || mainform.ed[1].checked)) { Any help, pointers, suggestions, etc. will be greatly appreciated. Thanks. Albert Padley -- PHP Genera

[PHP] Regex (Phone Number)

2004-07-25 Thread Albert Padley
t browsers (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'] . "]";

[PHP] Update Multiple Records From Form

2004-05-27 Thread Albert Padley
each($ed as $id=>$val){ $query = "UPDATE ref_events_reg SETfname = '$fname' WHERE id = '{$id}'"; I am looping through the correct records, but every field is being updated to "Array". What tweak do I need

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]): The processing code is: if (count($del) > 0){ for ($i=0;$iI think you need to take a step back and figure out where the $del variable

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]): The processing code is: if (count($del) > 0){ for ($i=0;$iI think you need to take a step back and figure out where the $del variable is comming from. Both solutions that have been provi

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
): Bad arguments. AP> and the following query: AP> DELETE FROM ref_events_reg 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 T

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 cod

[PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Albert Padley
: 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 Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] textarea form input converting < and > to < >

2002-02-20 Thread Byron Albert
imes we want to input html tags. Has any one else run into this problem maybe even found a solution. Any help would be appreciated. Thanks Byron test form what you typed -- ---- Byron Albert

[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
ens randomly. I've 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] Problem with gettext support - Solaris 2.7

2001-01-18 Thread Albert Novak
n 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
n 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]