[PHP-WIN] Re: insert syntax

2003-11-25 Thread Andrei BEJENARU
Hi, In MySQL it's INSERT INTO table2 SELECT * FROM table1 Regards, Andrei "Rinku Shivnani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear All, > > I want to insert data from one table to another one. But I don't > remember the syntax properly. Can you pls help me ? > > Insert

[PHP-WIN] Re: Regular Expression Question

2003-11-21 Thread Andrei BEJENARU
Enclose a capturing group (\d) and the use prefix\${1} inside the replacement. Check out the PHP manual: $string = "April 15, 2003"; $pattern = "/(\w+) (\d+), (\d+)/i"; $replacement = "\${1}1,\$3"; "Gerardo Rojas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a regular expre

[PHP-WIN] Re: Speeding up PHP?

2003-10-28 Thread Andrei BEJENARU
First of all, you should break the results into chunks getting 20-30 results at a time. A page displaying 1275 result is anything but readable. Use LIMIT in your SQL query and create a navigation bar. Also use indexing of the columns and filtering (WHERE conditions). --- Andrei BEJENARU

[PHP-WIN] Re: Sessiom Problem

2003-06-20 Thread Andrei BEJENARU
In your script page are you displaying something *before* starting the session? Andrei BEJENARU "Waldemar Brand Neto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hy whwn I tried to use a sessiom this error ocours: Warning: Cannot send session cookie - headers

[PHP-WIN] Re: Password generator

2003-06-17 Thread Andrei BEJENARU
Here's a little function that could help you... It uses the ASCII table to generate the characters and it still needs to be customized for any length and to deny the use of the special characters... Don't forget to set the mt seed! function generatePassword() { $passwd = ""; while(strlen($passwd