Skip to content

Instantly share code, notes, and snippets.

View fredgibbs's full-sized avatar

Fred Gibbs fredgibbs

View GitHub Profile
@fredgibbs
fredgibbs / simpleform.php
Created September 19, 2012 14:37
PHP array help
<?
function displayData() {
$mysqli = new mysqli('localhost', 'telahaus_clio3', 'clio3Rocks!', 'telahaus_clio3');
$query = "SELECT id, name FROM battle";
$result = $mysqli->query($query);
while($row = $result->fetch_row()) {
printf("%s: <strong>%s</strong><br>", $row[0], $row[1]);