// Racing
$id = trim(mysqli_real_escape_string($con,$_GET['id'])); $sql = "SELECT headline FROM news WHERE id = '".$id."'"; $result = mysqli_query($con, $sql); if (mysqli_num_rows($result)) { while ($row = mysqli_fetch_assoc($result)) { echo '' .$row["headline"].''; } } else { echo "There is no News with the ID you have entered. If it's an Injection attempt, don't waste your time."; } ?>
$id = trim(mysqli_real_escape_string($con,$_GET['id'])); $sql = "SELECT newsimg2 FROM news WHERE id = '".$id."' && extract2 IS NOT NULL"; $result = mysqli_query($con, $sql); if (mysqli_num_rows($result)) { while ($row = mysqli_fetch_assoc($result)) { echo ''; } mysqli_free_result($result); } else { echo " "; } ?>
$id = trim(mysqli_real_escape_string($con,$_GET['id'])); $sql = "SELECT newsimg3 FROM news WHERE id = '".$id."' && extract3 IS NOT NULL"; $result = mysqli_query($con, $sql); if (mysqli_num_rows($result)) { while ($row = mysqli_fetch_assoc($result)) { echo ''; } mysqli_free_result($result); } else { echo " "; } ?>
$id = trim(mysqli_real_escape_string($con,$_GET['id'])); $sql = "SELECT newsimg4 FROM news WHERE id = '".$id."' && extract4 IS NOT NULL"; $result = mysqli_query($con, $sql); if (mysqli_num_rows($result)) { while ($row = mysqli_fetch_assoc($result)) { echo ''; } mysqli_free_result($result); } else { echo " "; } ?>
$id = trim(mysqli_real_escape_string($con,$_GET['id'])); $sql = "SELECT newsimg5 FROM news WHERE id = '".$id."' && extract5 IS NOT NULL"; $result = mysqli_query($con, $sql); if (mysqli_num_rows($result)) { while ($row = mysqli_fetch_assoc($result)) { echo ''; } mysqli_free_result($result); } else { echo " "; } ?>