I am trying to embed php in css but the result is not as required it is showing me the variable names and an echo statement:-
<!doctype html>
<?php
require_once("mysqlconnect.php");
session_start();
$q="select * from profile where mobile=8078899386";
?>
<html>
<head></head>
<body>
<div>
<?php
$result=mysqli_query($conn,$q);
$field=mysqli_fetch_field($result);
echo "<p>$result</p>";
echo "<p>$field</p>";
?>
</div>
</body>
</html>
Result is:
$result
"; echo "
$field
"; ?>
or