Question: I need help with my php code. This is my code, this is my output, but i dont want it to be horizontal like this
I need help with my php code. This is my code,
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "student";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
//create and execute query
$sql = "SELECT * FROM studentdata";
$result = $conn->query($sql);
//check if records were returned
if ($result->num_rows > 0) {
//create a table to display the record
echo '
| Name | IdentificationCard | Gender | Religion | Nation | Phone Number | Search | Delete | |
| '.$row["Name"].' | ';'.$row["IdentificationCard"].' | ';'.$row["StudentEmail"].' | ';'.$row["StudentGender"].' | ';'.$row["StudentReligion"].' | ';'.$row["StudentNation"].' | ';'.$row["StudentMobile"].' | ';
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

this is my output, but i dont want it to be horizontal like this
i want it to be Vertical like this and i done so many thing and still failed. pls help me. tq so much