<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adsense Script &#187; database</title>
	<atom:link href="http://scriptahead.com/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://scriptahead.com</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 17:01:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>USING A DATABASE VARIABLE INSIDE AN OPTION VALUE IN A DROP DOWN BOX?</title>
		<link>http://scriptahead.com/369/using-a-database-variable-inside-an-option-value-in-a-drop-down-box/</link>
		<comments>http://scriptahead.com/369/using-a-database-variable-inside-an-option-value-in-a-drop-down-box/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 05:02:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[drop]]></category>
		<category><![CDATA[inside]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[using]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://scriptahead.com/369/using-a-database-variable-inside-an-option-value-in-a-drop-down-box/</guid>
		<description><![CDATA[Question by shortpc89: Using a database variable inside an option value in a drop down box? I want to put a drop-down box on my gaming site. The user will be able to click on the box and the box will drop down and show a list of games that are in the database. Each]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by shortpc89</i>: <br />Using a database variable inside an option value in a drop down box?</strong><br />
I want to put a drop-down box on my gaming site.  The  user will be able to click on the box and the box will drop down and show a list of games that are in the database.  Each game listed in the box will have a link to it.  The link will be generated based on the ID of the game in the database.</p>
<p>At the moment, the code I have right now is this:</p>
<p>The Javascript:</p>
<p><script type="text/javascript">
function submitForm() {
var list = document.navList.subMenu;
var page = list.options[ list.selectedIndex ].value;
if (page != "home")
window.location = page;
return false;
}
</script></p>
<p>The dropdown box:</p>
<li style="line-height:38px;background:url();">
<form name="navList" onsubmit="return submitForm();">
<select name="subMenu">
<?php<br />
$  connection = mysql_connect("mysql1046.servage.net","mmocraze","jk1jk1jk1");</p>
<p>//Selects the Games table<br />
mysql_select_db("wp_MMOCraze_games", $  connection);</p>
<p>//The query to run on the table with variable set for WHERE gameName<br />
$  gameName = $  _GET['gameName'];<br />
$  gameName = strip_tags($  gameName);</p>
<p>$  query="SELECT gameName,gameId FROM wp_MMOCraze_games";</p>
<p>$  result = mysql_query($  query) or die(mysql_error());</p>
<p>while($  row = mysql_fetch_array($  result))<br />
{</p>
<p>$  row['gameName']= str_replace(' ', '-', $  row['gameName']);<br />
?><br />
echo &#8220;<br />
<option value='http://www.mmocraze.com/game-directory/game-profile/?gameId=" .$  row['gameId']. "'>&#8221; .$  row['gameName']. &#8220;</option>
<p>&#8220;;<br />
<?php<br />
}<br />
mysql_close($  connection);<br />
?><br />
</select>
<input type="submit" value="Go" />
</form>
</li>
<p>The problem is that when it shows up on my site, the actual names of the games do not show up. Instead the code shows up.  For instance, &#8221; .$  row['gameName']. &#8221; will loop itself over and over again int he menu and the link, when clicked on, will look like this: http://www.mmocraze.com/game-directory/game-profile/?gameId=&#8221; .$  row[</p>
<p>Here's the code my friend sent me (without the javascript and action page (haven't tried it yet):</p>
<form action="theReceivingPage" method="POST">
<p><?php</p>
<p>$  sql = "SELECT gameId, gameName FROM game ORDER BY gameName";<br />
$  result = mysql_query($  sql);</p>
<p>while($  row = mysql_fetch_array($  result))<br />
{</p>
<p>$  gameId = $  row['gameId'];<br />
$  gameName = $  row['gameName'];</p>
<p>print(&#8221;</p>
<option value=$  gameId>$  gameName</option>
<p>&#8220;);</p>
<p>}</p>
<p>?></p>
<input type="submit" value="See This Game">
</form>
<p>Can anyone help me with this?</p>
<p><span id="more-369"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by Riley</i><br/>this is usually because you have not shut with a &#8221; or &#8216; can you link me?</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Give your own answer to this question below!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://scriptahead.com/369/using-a-database-variable-inside-an-option-value-in-a-drop-down-box/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HOW DO YOU CREATE AN ONLINE DATABASE FOR LETS SAY.. A GAME SITE.?</title>
		<link>http://scriptahead.com/161/how-do-you-create-an-online-database-for-lets-say-a-game-site/</link>
		<comments>http://scriptahead.com/161/how-do-you-create-an-online-database-for-lets-say-a-game-site/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 17:06:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[lets]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Say..]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://scriptahead.com/161/how-do-you-create-an-online-database-for-lets-say-a-game-site/</guid>
		<description><![CDATA[Question by Scare: How Do you Create An On the web Database for Lets Say.. A Game Site.? Something Like Neopets, or Gaiaonline.. How Does that System Work and where would i Have to Look to Learn About it. So Far all i know is that its Got something to Do with Scripting.. Also, Does]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by Scare</i>: <br />How Do you Create An On the web Database for Lets Say.. A Game Site.?</strong><br />
Something Like Neopets, or Gaiaonline.. How Does that System Work and where would i Have to Look to Learn About it. So Far all i know is that its Got something to Do with Scripting.. </p>
<p>Also, Does Anyone Know a Good Website Host?</p>
<p><span id="more-161"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by Peter West</i><br/>Online databases are run from SQL Structured Query Language (SQL), pronounced &#8220;sequel&#8221;, is a language that provides an interface to relational database systems. &#8230;</p>
<p>There are many things u can use to create SQL databases the most well know one is mySQL&#8230;    after you have mySQL you inject the scripts into a database its very difficult stuff thats why most stuff like phpnuke have an auto installer for the SQL Database.</p>
<p>Cheap and good webhost is www.hostingon.com 60$   a year for 15gb storage and 300gb bandwidth</p>
<p>Edit: most webhosts come with mySQL!</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Add your own answer in the comments!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://scriptahead.com/161/how-do-you-create-an-online-database-for-lets-say-a-game-site/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WHERE CAN I FIND A HUGE DATABASE OF WEBSITE SCRIPTS?</title>
		<link>http://scriptahead.com/128/where-can-i-find-a-huge-database-of-website-scripts/</link>
		<comments>http://scriptahead.com/128/where-can-i-find-a-huge-database-of-website-scripts/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 05:01:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[huge]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://scriptahead.com/128/where-can-i-find-a-huge-database-of-website-scripts/</guid>
		<description><![CDATA[Question by Willy Foroner: Where can I find a large database of website scripts? Or maybe a script clone? I do not know. I am trying to learn how to create a Top 100 Sites voting page. Any suggestions? &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Answer by monchangerTry websites that provide free hosting services. I used to use Brinkster.com which]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by Willy Foroner</i>: <br />Where can I find a large database of website scripts?</strong><br />
Or maybe a script clone? I do not know. I am trying to learn how to create a Top 100 Sites voting page. Any suggestions?</p>
<p><span id="more-128"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by monchanger</i><br/>Try websites that provide free hosting services.  I used to use Brinkster.com which has a code-sharing section at http://codebank.brinkster.com/</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>What do you think? Answer below!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://scriptahead.com/128/where-can-i-find-a-huge-database-of-website-scripts/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

