Cesar Aguirre wrote:
> hi, can anyone hel me?... I'm trying to do it in
> php, but I can't to get te result, I'm doing this:
>
> [...]
> $result=mysql_query($s,"SELECT @result");
> print_f($result)
The problem is very simply that your PHP script is not complete.
You should check $result, if it's zero then you want to print mysql_errno() and mysql_error().
If it's non-zero, then you need to actually get the result data! $result from mysql_query() will *NOT* contain the actual data, it just returns a result handle (or zero).
See php.net/mysql_query for code examples.
Regards, Arjen.
--
Arjen Lentz, Exec.Director @ Open Query (http://openquery.com)
Remote expertise & maintenance for MySQL/MariaDB server environments.
Follow us at
http://openquery.com/blog/ &
http://twitter.com/openquery