[mapserver-users] RE: QuerybyAttributes examples

YC Nyon ycnyon@pd.jaring.my
Thu, 10 Oct 2002 11:36:22 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0097_01C27051.426F7DA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a massive business directory in MySQL database. Using PHP, =
dynamic queries can be made. What i want to implement is for the user to =
click "View Map" button on the results and zoom to the location of the =
business. Currently, i have MS-PHP running doing the zoom/pan stuff.

Looking at the documentation, QuerybyAttributes seems to be the method =
to use. In Mysql, I can add a column to store the record-id which can be =
passed to MS-PHP. Not too sure how to go about it. Can someone share =
their code snippets on this function.

TIA
Nyon

  =20

------=_NextPart_000_0097_01C27051.426F7DA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a massive business directory in =
MySQL=20
database.&nbsp;Using PHP,&nbsp;dynamic queries can be made. </FONT><FONT =

face=3DArial size=3D2>What i want to implement is for the&nbsp;user to =
click "View=20
Map" button on the results and zoom to the location of the business. =
Currently,=20
i have MS-PHP running doing the zoom/pan&nbsp;stuff.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Looking at the documentation, =
QuerybyAttributes=20
seems to be the method to use. In Mysql, I can add a column to store the =

record-id which can be passed to MS-PHP.&nbsp;Not too sure how to go =
about it.=20
Can someone share their code snippets on this function.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nyon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;</FONT></DIV></BODY></HTML>

------=_NextPart_000_0097_01C27051.426F7DA0--