Re: need help with foreach
| From: | Richard Lynch | Date: | Tue, 31 Oct 2006 17:19:47 +0000 |
| Subject: | Re: need help with foreach | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243961@lists.php.net to get a copy of this message | ||
On Tue, October 31, 2006 4:09 am, melinem@earthlink.net wrote:
> I want to tell the server to do 2 things when I click on the
> "jobType" link.
>
> This is the code that I have now which displays the "art" when I
> click on "jobType"
>
> foreach($row as $jobType)
> {
> $row = mysql_fetch_array($result2,MYSQL_ASSOC);
> echo "<a href=client.php?art=".$row['pix']."
> border='0'>{$row
> ['jobType']}</a>\n";
echo "<a href=\"$row[url]\">$row[url]</a>\n";
> I now want to, with the same click, also show the url if I have a url
> for that "jobType" in my database column called "url".
I'm assuming you don't mean that you want the user to see the image
and then be auto-forwarded to the 'url' from the db...
That's a fish of a different color.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?