[Wolves] mysql select help - a little one ;-)
David Goodwin
david at codepoets.co.uk
Wed Apr 4 20:48:54 UTC 2012
There's always the PHP function http_build_query --
http://uk3.php.net/http_build_query
e.g. calling http_build_query(array('a' => 'fish', 'b' => 'beer', 'c' => 55)) would give :
a=fish&b=beer&c=55
So your URL would just need to be e.g.
echo "<a href='http://link.to.whatever/blah/blah.php?" . http_build_query($array_of_stuff) . "'>click here</a>";
The nice thing about http_build_query is that it will correctly escape the data.
David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/wolves/attachments/20120404/a64b6d35/attachment-0001.htm>
More information about the Wolves
mailing list