<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic question about mysql in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/question-about-mysql/m-p/50824#M14905</link>
    <description>&lt;DIV&gt;So I have mysql db with 2 tables&lt;BR /&gt;&lt;BR /&gt;1 table "player"&lt;BR /&gt;id | player name&lt;BR /&gt;&lt;BR /&gt;and the other table "playerdata"&lt;BR /&gt;&lt;BR /&gt;player_id | data | etc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I make a single sql query that takes a specified playername and looks it up in the first table, and then uses that players 'id' in the 2nd table "playerdata"&lt;BR /&gt;&lt;BR /&gt;Pretty new to mysql and php(somewhat anyway)&lt;BR /&gt;&lt;BR /&gt;I can do it by making 2 queries, but I was wondering if it isn't just possible to make mysql do the extra working in finding that players id and then using it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" border="0" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 11 Feb 2013 18:56:32 GMT</pubDate>
    <dc:creator>orthohin</dc:creator>
    <dc:date>2013-02-11T18:56:32Z</dc:date>
    <item>
      <title>question about mysql</title>
      <link>https://business.forums.bt.com/t5/Archive/question-about-mysql/m-p/50824#M14905</link>
      <description>&lt;DIV&gt;So I have mysql db with 2 tables&lt;BR /&gt;&lt;BR /&gt;1 table "player"&lt;BR /&gt;id | player name&lt;BR /&gt;&lt;BR /&gt;and the other table "playerdata"&lt;BR /&gt;&lt;BR /&gt;player_id | data | etc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I make a single sql query that takes a specified playername and looks it up in the first table, and then uses that players 'id' in the 2nd table "playerdata"&lt;BR /&gt;&lt;BR /&gt;Pretty new to mysql and php(somewhat anyway)&lt;BR /&gt;&lt;BR /&gt;I can do it by making 2 queries, but I was wondering if it isn't just possible to make mysql do the extra working in finding that players id and then using it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;IMG src="http://imagicon.info/cat/12-1/text-smiley.png" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Feb 2013 18:56:32 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/question-about-mysql/m-p/50824#M14905</guid>
      <dc:creator>orthohin</dc:creator>
      <dc:date>2013-02-11T18:56:32Z</dc:date>
    </item>
  </channel>
</rss>

