Is there any way to store mysql result in php variable? thanks
$query = \"SELECT username,userid FROM user WHERE username = \'admin\' \"; $result=$conn->q
Of course there is. Check out mysql_query, and mysql_fetch_row if you use MySQL. Example from PHP manual:
mysql_query
mysql_fetch_row