Demo entry 6660528



Submitted by anonymous on Nov 15, 2017 at 17:38
Language: PHP. Code size: 378 Bytes.

$connect = mysqli_connect('localhost', 'username', 'password', 'database');

$stmt = mysqli_prepare($connect, "SELECT intelligence FROM animals WHERE name = ?");

if ($stmt) {
    mysqli_stmt_bind_param($stmt, "s", $animalName);
    mysqli_stmt_bind_result($stmt, $intelligence);
    } else {
    print 'Sorry, no records found.';

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).