CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

massiv at nerdshack dot com
16 years ago
php 4 equivalent:

<?php
$conn
= pg_pconnect("dbname=publisher");
if (!
$conn) {
echo
"An error occured.\n";
exit;
}

$result = pg_query($conn, "SELECT title, name, address FROM authors");
if (!
$result) {
echo
"An error occured.\n";
exit;
}

// Get an array of all author names
$arr = array();
while (
$line = pg_fetch_array($result)) {
array_push($arr, $line['name']);
}

var_dump($arr);

?>

<< Back to user notes page

To Top