[PHP] Catching error from mail function?

2005-03-31 Thread Ben Cheng
Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is there an error message that I can grab that will show me why the function is returning false? Any help greatly appreciated. Thanks! -Ben -- PHP General

[PHP] PGP?

2003-06-06 Thread Ben Cheng
Any way in PHP to grab form info and then encrypt it with PGP before sending it out as an email? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Retrieving newly created ID from MySQL?

2003-03-26 Thread Ben Cheng
If I have a MySQL table with an auto-incrementing ID field, is there an easy way to retrieve the new ID after I insert a new row into the table? For example, if I insert a row into a table with ID, Title, & Content fields, is there a way I can get the ID value without doing a separate select w

[PHP] Targetted redirection?

2002-03-13 Thread Ben Cheng
I have a page within a frame that uses Header() to redirect to another page. However, I don't want the redirection to take place just within that frame set. I want the page that it redirects to to cover over the frame. Is this possible? -Ben -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Retrieving data from multiple select list

2001-03-11 Thread Ben Cheng
m 1 >Item 2 >Item 3 > > >in the script: >$num = sizeof($CategoryID); // Number of array items >for($i=0;$i<$num;$i++) > { > // $CategoryID[$i] --> whatever you wanna do with it... > } > > > >"Ben Cheng" <[EMAIL PROTECTED]&g

[PHP] Retrieving data from multiple select list

2001-03-10 Thread Ben Cheng
I have a select box that allows the user to select and submit more than one selection at a time. How do I retrieve all the selections in PHP? For example, the select list is named CategoryID. But when I select more than one item and then hit submit, $CategoryID only shows me the last value

[PHP] Escaping double quotes?

2001-02-24 Thread Ben Cheng
How do you escape double quotes? I have the following which is supposed to make any " in a string into \" but it doesn't seem to work. What's wrong with it? $tmp_string = str_replace ("\"", "\\\"", $tmp_string); -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Temporarily turning off magic quotes?

2001-02-24 Thread Ben Cheng
If I have magic quotes turned on for post/get/etc. in my php.ini, is there any way to temporarily turn it off for one page? For example, I have a preview page inbetween my data entry page and the page that actually saves to db. I don't want magic quotes turned on when going from the data ent