2a3,6 > if( !extension_loaded('pgsql') ) { > dl('pgsql.so'); > } > 26c30 < $link = mysql_connect("$dbhost", "$dbuser", "$dbpass") --- > $link = pg_connect("host=$dbhost user=$dbuser password=$dbpass dbname=$dbname") 28,29d31 < mysql_select_db ("$dbname") < or die ("Could not select database"); 77,79c79,81 < $result = mysql_query($cmd); < echo mysql_error(); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > echo pg_errormessage(); > $num_rows = pg_numrows($result); 89c91 < "where prefid = $post_editid"; --- > "where oid = $post_editid"; 96,97c98,99 < $result= mysql_query($cmd); < echo mysql_error(); --- > $result= pg_exec($cmd); > echo pg_errormessage(); 127,128c129,130 < $cmd = "delete from userpref where prefid = $get_delete"; < $result = mysql_query($cmd); --- > $cmd = "delete from userpref where oid = $get_delete"; > $result = pg_exec($cmd); 139c141 < $cmd = "select prefid, preference, value from userpref " . --- > $cmd = "select oid, preference, value from userpref " . 144,145c146,147 < $result = mysql_query($cmd); < while($row=mysql_fetch_array($result)) { --- > $result = pg_exec($cmd); > while($row=pg_fetch_array($result)) { 163c165 < href="index.php?delete=" --- > href="index.php?delete=" 167c169 < href="index.php?edit=" --- > href="index.php?edit=" 180,182c182,184 < "username = '$username' and prefid = $get_edit"; < $result = mysql_query($cmd); < $row = mysql_fetch_array($result); --- > "username = '$username' and oid = $get_edit"; > $result = pg_exec($cmd); > $row = pg_fetch_array($result); 240c242 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 243c245 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 251c253 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 254c256 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 260c262 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 263c265 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 269c271 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 272c274 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 278c280 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 281c283 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 289c291 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 292c294 < $result = mysql_query($cmd); --- > $result = pg_exec($cmd); 298,299c300,301 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 301c303 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result); 309,310c311,312 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 312c314 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result); 320,321c322,323 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 323c325 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result); 331,332c333,334 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 334c336 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result); 342,343c344,345 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 345c347 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result); 354,355c356,357 < $result = mysql_query($cmd); < $num_rows = mysql_num_rows($result); --- > $result = pg_exec($cmd); > $num_rows = pg_numrows($result); 357c359 < $row=mysql_fetch_array($result); --- > $row=pg_fetch_array($result);