Re: [PHP] Retrieving newly created ID from MySQL?

2003-03-26 Thread Leif K-Brooks
The manual is your friend! :) Have a look at http://www.php.net/manual/en/function.mysql-insert-id.php. Ben Cheng wrote: 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

[PHP] Re: Retrieving newly created ID from MySQL?

2003-03-26 Thread Foong
hello just call: mysql_insert_id(); right after you execute a insert statement Foong Ben Cheng [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: [PHP] can i ask?

2003-03-26 Thread tech
On Wednesday 26 March 2003 06:19 am, M.N. Ikhwan S. wrote: ScriptAlias /php/ c:/php/ AddType application/x-httpd-php .php Action application/x-httpd-php /php/php.exe i'm using apache 2.0 as my web server. and i'm about to ask these question, where am i going to put these three lines?

RE: [PHP] Checkbox

2003-03-26 Thread David Pearson
Just be wary that not all browsers will honor the readonly flag (Netscape 4 for example). In looking at this I found a tutorial at http://www.estek.net/estek/idocs/forms/_INPUT_DISABLED.html . I tested it in IE 6, NS 7.02 and Opera 7. None of these browsers prevented me from checking and

RE: [PHP] Checkbox

2003-03-26 Thread Kalin Mintchev
hello, how can i get the output file from the curl function to stream - to be processed like from fopen or fsockopen? thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stream from curl

2003-03-26 Thread Kalin Mintchev
sorry - i forgot to change the subject apologize.. On Thu, 27 Mar 2003, Kalin Mintchev wrote: hello, how can i get the output file from the curl function to stream - to be processed like from fopen or fsockopen? thanks... -- PHP General Mailing List (http://www.php.net/) To

[PHP] Strtotime weirdness

2003-03-26 Thread Liam Gibbs
When I have a date, March 31, 2003, and I want to subtract 1 month using strtotime, I find it will literally subtract a month, so March 31, 2003 minus one month will result in February 31, 2003, or rather, March 3, 2003. Is there any way of making March 31, 2003 minus one month equal February

[PHP] Help on preg_split

2003-03-26 Thread Jim
Hi! Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = 010101a020202, or $dateting = 010101+020202 Then I

[PHP] Parse out special strings

2003-03-26 Thread Richard Sumilang
I need to parse out strings from a long piece of string for templating purposes. The criteria is to find all strings that start with {, end with }, and only contain text or underscores between the two brackets. No numbers or other special characters can be between to the brackets to qualify

[PHP] user permission system (integer to small)

2003-03-26 Thread Torsten Rosenberger
Hello I have some trouble with user permission. I build the system like the permission in the phplib. admin = 1 news= 2 news_create = 4 news_delete = 8 . . . then ich can check ($user_perm $perm == $perm ) But the problem ist that the permissions now over BIGINT. So i

[PHP] How do i valadate an email address?

2003-03-26 Thread Philip J. Newman
How would i check that an e-mail has the right parts in it. for example. username @ domain . ext Thanks / Jim Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] imap_headerinfo() - problem

2003-03-26 Thread thomas
hi all, i have a problem I have an email if in to or cc have more than 100 addresses when I tried to call the function: imap_headerinfo() ($info = @imap_headerinfo($this-conn, $msg_id);), the browser return: zero sized reply or The page cannot be displayed (in IE) any ideea? have fun

[PHP] Send Output to Printer?

2003-03-26 Thread Nicole
anyone know of a good tutorial for using PHP to send output to a printer? have a report that returns paged display (e.g., 20 rows max per page) ... too many rows to show on one page. need a print button that will send all the output directly to the printer and print all pages not talking

[PHP] SHA-1 + RSA + base64

2003-03-26 Thread Veniamin Goldin
Hi all, I need some help, I have a request to encode string with SHA-1, then with RSA and at the end with base64, There no problems with SHA-1 and base64, but i can't find any functions to encode using RSA. md5 seems to be not what I'm looking for. I heard also, that there should be special

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Thanks to those that have helped thus far. To clarify what we need: Our CRM system (really a prospect gathering system) needs to internally hosted, be realtime and needs to be updated automatically. Our website (hosted externally) is *one of many* tools which we are going to use to gather

Re: [PHP] Send Output to Printer?

2003-03-26 Thread Leif K-Brooks
PHP is server-side; it can't do anything to the client. You'll need to use javascript, or some other client-side technology. Nicole wrote: anyone know of a good tutorial for using PHP to send output to a printer? have a report that returns paged display (e.g., 20 rows max per page) ... too

<    1   2