Sure.
simple-test-script.php
<html><head><title>CGI C Example #3</title></head>
<body><h1>CGI C Example #3</h1>
<table border=2>
<?
$db = mysql_pconnect("localhost","root","") or die('konnekt');
mysql_select_db("ht3") or die('db');
$r = mysql_query("SELECT * FROM pages");
if...