[KLUG Members] PHP/MySQL

Paul VandenBosch admin at cruisenews.net
Thu Nov 11 22:01:54 EST 2004


For each cell in the table, just use a link to the php page with a variable.

<a target=_blank
href="yoururl.com/page.php?somevariable=a1&someothervariable=somethingelse><img
src="yourimage.jpg></a>

Put the query in page.php and set it up so it gives the correct results
with the variables you passed to it.

Its hard to say what to do with the variable on page.php without knowing
what you are trying to do.

Lunitix said:
> Ok I am probably going about all wrong, but here's what I'm looking to do.
>
> I have a 10x8 table that has images in each of the sections.  I would
> like to be able to click on an image and get a new page the has specific
> information that is acquired from a MySQL database.
>
> ie.
>
> table =
>
> 	a	b	c	d
>
> 1	a1	b1	c1	d1
>
> 2	a2	b2	c2	d2
>
> 3	a3	b3	c3	d3
>
> 4	a4	b4	c4	d4
>
> There is an image for each grid coordinate.  When clicked on, there is a
> preset query to the MySQL database that returns its results too a new
> page.
>
> Any help pointing me in the right direction will be appreciated.
>
>
> Jon
> Minding of Madness
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
>


-- 
Paul VandenBosch
Guide to Sailing and Cruising Stories
http://cruisenews.net



More information about the Members mailing list