[Cartoweb-users] Hi How to get data from the map database
Emmanuel BELO
emmanuel.belo at microgis.ch
Fri Mar 10 03:50:36 EST 2006
In php to connect to PostgreSQL/PostGIS
// connect to database
$conn_string = "host=xxx port=5432 dbname=vd2006 user=xxx password=xxx";
$dbconnect = pg_connect($conn_string);
$result = pg_query($dbconnect, 'SELECT COUNT(*) FROM xxx');
$row = pg_fetch_row($result);
regards,
eb
VenuGopal Papasani wrote:
> Hi all,
> I need to get the map data into my plugin in order to access that
> data.Can any one give me the method how to get the map data and i need
> total no of records in the map database.How to get these values from a
> plugin.And also can u give me the method how to connect to a map
> database.If there is any possibility please try to explain with an example.
> Thanks in advance.
>
> Regards,
> venu.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emmanuel.belo.vcf
Type: text/x-vcard
Size: 337 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060310/4997d06d/emmanuel.belo.vcf
More information about the Cartoweb-users
mailing list