Jump to content

echoing and debuging


wright67uk

Recommended Posts


<?php
include 'connect.php';
//$date = date('Y-m-d H:i:s');
//$username = "Ed";
$horse = isset($_GET['horse'])&& $_GET['horse']!=''?$_GET['horse']:'';
echo "<h1>" . $horse . "</h1>";

if ($stmt = $mysqli->prepare("SELECT horse_name, username, Notes, publish_date FROM notes WHERE horse_name = ?"));
{
$stmt->bind_param("s", $horse);
$stmt->execute();
$stmt->bind_result($horse_name, $username, $notes, $publish_date);
}

while ($stmt->fetch()) {
printf("%s added %s \n", $username, $notes);
echo "<br/><br/>-------------------------<br/>";
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.