June 12, 2002, 10:35:10 pm
<--PreviousNext -->
...but then your PHB decides he wants to use Postgresql
	$pg_conn = pg_connect("$host","$user","$passwd","$database");
	$query = "SELECT * FROM USERS";
	$result = pg_exec("$pg_conn",$query);
	$num_rows = pg_numrows($result);
	for ($i=0;$i<$num_rows;$i++) { 
		$data = pg_fetch_row($result); 

It's easy to change the 8 line example, but what about your entire website. The lack of a common database API has been one of PHP's biggest weaknesses, and one of the easist things for fans of other scripting languages to compain about. Perl got this right....PHP didn't...until now....