<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: URL link in PHP/MySQL script</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/</link>
	<description></description>
	<pubDate>Fri, 27 Nov 2009 19:55:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Jviney</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/#comment-54099</link>
		<dc:creator>Jviney</dc:creator>
		<pubDate>Sat, 21 Jun 2008 19:07:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-54099</guid>
		<description>Thank you....I modified it a bit, but it works perfectly!

  echo "&#60;td&#62;&#60;a href='venues/venue_a/venue_b.php'&#62;" . $row['club_name'] . "&#60;/a&#62;&#60;/td&#62;";

Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you&#8230;.I modified it a bit, but it works perfectly!</p>
<p>  echo &#8220;&lt;td&gt;&lt;a href=&#8217;venues/venue_a/venue_b.php&#8217;&gt;&#8221; . $row['club_name'] . &#8220;&lt;/a&gt;&lt;/td&gt;&#8221;;</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawngo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/#comment-54098</link>
		<dc:creator>Shawngo</dc:creator>
		<pubDate>Sat, 21 Jun 2008 13:26:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-54098</guid>
		<description>if you just want the URL in there, remove the $row[''] part from the href.

echo '&#60;td&#62;&#60;a href="venues/venue_a/venue_a.php“&#62;' . $row[’club_id’] . '&#60;/a&#62;&#60;/td&#62;'; 


and if you're picking up the query string at venue_a.php you could do something like

echo '&#60;td&#62;&#60;a href="venues/venue_a/venue_a.php?club_id= . $row[’club_id’] . '“&#62;' . $row[’club_name’] . '&#60;/a&#62;&#60;/td&#62;'; 

What does the table look like that you're querying? Does it have a 'venue/venue_a/venue_a.php' column? Thats what it appears is happening in your version. But it seems like you have a column in the database to reference that venue. In that case, you would use $row[$column_name] where $column_name is (and stop me if you need no further explanation ;) ), the the column in your db that represents the venue URL reference for this particular venue.

Hope I confused things a bit more here. Job security?

Cheers,
Shawn</description>
		<content:encoded><![CDATA[<p>if you just want the URL in there, remove the $row[''] part from the href.</p>
<p>echo &#8216;&lt;td&gt;&lt;a href="venues/venue_a/venue_a.php“&gt;&#8217; . $row[’club_id’] . &#8216;&lt;/a&gt;&lt;/td&gt;&#8217;; </p>
<p>and if you&#8217;re picking up the query string at venue_a.php you could do something like</p>
<p>echo &#8216;&lt;td&gt;&lt;a href="venues/venue_a/venue_a.php?club_id= . $row[’club_id’] . &#8216;“&gt;&#8217; . $row[’club_name’] . &#8216;&lt;/a&gt;&lt;/td&gt;&#8217;; </p>
<p>What does the table look like that you&#8217;re querying? Does it have a &#8216;venue/venue_a/venue_a.php&#8217; column? Thats what it appears is happening in your version. But it seems like you have a column in the database to reference that venue. In that case, you would use $row[$column_name] where $column_name is (and stop me if you need no further explanation <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ), the the column in your db that represents the venue URL reference for this particular venue.</p>
<p>Hope I confused things a bit more here. Job security?</p>
<p>Cheers,<br />
Shawn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jviney</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/#comment-54096</link>
		<dc:creator>Jviney</dc:creator>
		<pubDate>Fri, 20 Jun 2008 22:34:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-54096</guid>
		<description>Thank you for your help Shawn, however, I'm still confused!</description>
		<content:encoded><![CDATA[<p>Thank you for your help Shawn, however, I&#8217;m still confused!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jviney</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/url-link-in-phpmysql-script/#comment-54064</link>
		<dc:creator>Jviney</dc:creator>
		<pubDate>Thu, 19 Jun 2008 22:51:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-54064</guid>
		<description>This is the line I am using...
  
echo "&#60;td&#62;&#60;a href=" . $row['venues/venue_a/venue_a.php'] . "&#62;" . $row['club_id'] . "&#60;/a&#62;&#60;/td&#62;"; 

It shows in the table, but the link goes to the "first half" of the web page URL , what I placed in the code is the "2nd half" of the URL. 

Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>This is the line I am using&#8230;</p>
<p>echo &#8220;&lt;td&gt;&lt;a href=" . $row['venues/venue_a/venue_a.php'] . &#8220;&gt;&#8221; . $row['club_id'] . &#8220;&lt;/a&gt;&lt;/td&gt;&#8221;; </p>
<p>It shows in the table, but the link goes to the &#8220;first half&#8221; of the web page URL , what I placed in the code is the &#8220;2nd half&#8221; of the URL. </p>
<p>Any help would be appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->