With PHP when I first used it in a major application, it didn't matter which way. But when I started college you have to learn syntax and that's a major play in all coding languages. It's a little bit cleaner to use double quotes for a string and then single quotes. This would be a good example:
<?php
$servername = "127.0.0.1";
$username = "username";
$password = "password";
$dbname = "database";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM management ";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$Name = $row['Name'];
$Job = $row['Main_Job'];
$image_src = $row['Image'];
echo "<div class='Cards'>";
echo "<img src= '$image_src'>";
echo "<div class='Cards-Container'>";
echo "<h4>$Name</h4>";
echo "<p>$Job</p>";
echo "</div>";
echo "</div>";
}
}
?>