fetch and query in one line

Hello

May I ask if this statement is ok?

mysqli_fetch_array(mysqli_query($con $sql))

What are the pros and cons for this? thanks.

Bogski.

I want to know what it is ?

I am using it to save lines
Instead of using two line query like sample below
[php]
$var = mysqli_query($con,$sql_statement);
$var2 = mysqli_fetch_array($var);
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service