Currently, I'm doing:
But it doesn't work. It cuts off the page at line before <?php.
Anybody have any ideas? It works on my local XAMPP server.
Code:
<?php
include("config/databasecfg.php");
$stmt = $db->prepare('SELECT * FROM users WHERE id = ?');
$stmt->bind_param('s', $_GET['id']);
$stmt->execute();
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()) {
$name = $row['name'];
}
?>
But it doesn't work. It cuts off the page at line before <?php.
Anybody have any ideas? It works on my local XAMPP server.