[mapguide-users] Php_Postgres_Mapaguide

farouk azzouhri farouk153 at gmail.com
Mon Mar 21 12:39:37 EDT 2011


Hi ,

The following code works very well with the mapserver php when i try :

http://localhost/charts/index.php it works very well , also with wamp !!



but with mapguide when i try :

http://localhost:8008/mapguide/charts/index.php



index.php contain :

<?
$con = pg_connect("host=localhost port=5432 dbname=Farouk user=postgres
password=webmapping");

$result = pg_query($con, 'select * from chart');

 while ($row = pg_fetch_array($result)) {

     echo "id: " . $row[2] . "<br />";

     echo "Coverage_rate: " . $row[1] . "<br />";

     echo "operator: " . $row[0] . "<br />";
 }

 // free memory
 pg_free_result($result);

 // close connection
 pg_close();

?>

dosen't work any more !! can you help me pleaaaaaaaase
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110321/b13830a3/attachment.html


More information about the mapguide-users mailing list