Maleit Nen wrote:

> 
> 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?


is there a reason you're not using DBI and DBD::mysql?

http://search.cpan.org/search?dist=DBI

http://search.cpan.org/search?dist=DBD-mysql


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

Reply via email to