First excuse my english please, i am tring to get data from mysql with 
open(ident,"|mysql...
and put the result in a var $salida

This is the script:

$comandosql="use mataro;select password from mataronins where 
identificador=\"$identificador\";";
open (TUNEL,"|mysql -h localhost -u root");
        print TUNEL "$comandosql";
        while (<TUNEL>){
         $salida= "$salida$_";
        }
close TUNEL;

The result of mysql go to the stdout (terminal), and i need the result in 
$salida
any idea?

thanks






_________________________________________________________________
Con MSN Hotmail súmese al servicio de correo electrónico más grande del 
mundo. http://www.hotmail.com/ES


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to