<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022135" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022135</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136718</link>
    <description> &lt;p&gt;i&#039;ve done that. it&#039;s having issues with the @ in the e-mail address. i&#039;m looking o see if i can find anything that will dealw ith that automatically while writing the forum display and tweaking the control panels on interests.. and possibly the sign up...&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Aug 2003 18:48:49 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1136718 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136589</link>
    <description> &lt;p&gt;Thanks Mark, noted. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Those errors show up when you have other problems with the query, but at least you&#039;re connecting now. Check your variables, check your syntax, and make sure you&#039;re asking for the right things.&lt;/p&gt;
&lt;p&gt;I use mysql_error() a LOT and echo &quot;&quot;; exit; after every thing when I have errors to debug line by line.&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Aug 2003 19:17:48 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136589 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136587</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by m3rajk &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;the db has nothing in it. is that why i&#039;m getting the invalid resource? or is that caused by something else?&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;No, results should always be valid, regardless if anything is returned from the query.&lt;/p&gt;
&lt;p&gt;Suzanne, watch your scope...&lt;br /&gt;
global $server, $username, $password;&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Aug 2003 19:00:33 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1136587 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136577</link>
    <description> &lt;p&gt;i have switched it to mysql_connect (in all my files) it&#039;s still not doing it, &quot;thepassword&quot; is not the password for the user, it&#039;s just what i used for an example. but i&#039;m thinking your suggestion on having host and usernames as variables int he db file makes sense, and i just thought of something else.... i&#039;m including a few pages, i should doublecheck that $visitor is defined ONLY once&lt;/p&gt;
&lt;p&gt;edit:&lt;br /&gt;
i now know the original problem was that i was using mysql_pconnect(). when that didn&#039;t work i started on the forums and reasoning that out. i noticed in the db file (where i define the passwords) i later redefine bot $visitor and one other password for use in the forums. so i changed the forum one since only one page calls that. much easier to fix in one page than about a dozen pages.&lt;/p&gt;
&lt;p&gt;anyway, as soon as i did that, i got this:&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/findyourdesire/join.php on line 34&lt;/p&gt;
&lt;p&gt;Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/findyourdesire/join.php on line 40&lt;br /&gt;
sending to sql: INSERT INTO users (username, password, email, last_login_ip, last_login_date, enroll, gender) VALUES (neo, 9cc9e1f6a22e05307d6831087ef5d1e6, , 192.168.1.1, 2003-08-20 18:32:09, 2003-08-20 18:32:09, M)&lt;br /&gt;
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/findyourdesire/join.php on line 173&lt;/p&gt;
&lt;p&gt;Warning: Cannot add header information - headers already sent by (output started at /var/www/html/findyourdesire/join.php:34) in /var/www/html/findyourdesire/join.php on line 178&lt;/p&gt;
&lt;p&gt;Warning: Cannot add header information - headers already sent by (output started at /var/www/html/findyourdesire/join.php:34) in /home/joshua/includes/fyd.funcs.php on line 42&lt;/p&gt;
&lt;p&gt;Warning: Cannot add header information - headers already sent by (output started at /var/www/html/findyourdesire/join.php:34) in /home/joshua/includes/fyd.funcs.php on line 43&lt;/p&gt;
&lt;p&gt;Warning: Cannot add header information - headers already sent by (output started at /var/www/html/findyourdesire/join.php:34) in /home/joshua/includes/fyd.funcs.php on line 44&lt;/p&gt;
&lt;p&gt;Warning: Cannot add header information - headers already sent by (output started at /var/www/html/findyourdesire/join.php:34) in /home/joshua/includes/fyd.funcs.php on line 45&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; followed by the next page.&lt;br /&gt;
th header issues are an expected result of the debugging line i have in there. i do have a question now... the db has nothing in it. is that why i&#039;m getting the invalid resource? or is that caused by something else?&lt;/p&gt;
&lt;p&gt;and Suzanne, i don&#039;t know why, but it&#039;s you last post that made me think to check for a double declaration.&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Aug 2003 18:10:56 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1136577 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136569</link>
    <description> &lt;p&gt;So your username is visitor and your password is &quot;thepassword&quot; and this doesn&#039;t work? &lt;/p&gt;
&lt;p&gt;How do you have it in your script?&lt;/p&gt;
&lt;p&gt;***&lt;/p&gt;
&lt;p&gt;I should point out that my function has nothing to do with modules for PHP, but rather using mysql_pconnect() only works if PHP is a module, not compiled with Apache.&lt;/p&gt;
&lt;p&gt;Try using the more standard (and probably better for your application in this case) mysql_connect() and set up a nice function to serve you.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$server &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;servername&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt; &lt;br /&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;connectdatabase&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$connected &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$server&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Aug 2003 17:38:07 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136569 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136567</link>
    <description> &lt;p&gt;i&#039;ve used the shell to verify that both the username and password work. the file with the db functions has the variable $pw set as $pw=&#039;thepassword&#039;;&lt;br /&gt;
so unless it also has the &#039;&#039; it should be exactly the same thing as i type into the shell&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 Aug 2003 17:30:15 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1136567 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136490</link>
    <description> &lt;p&gt;Looks to me like that username or password is wrong. That&#039;s the error I get when I move things from one server to another and fail to change the information in my happy connection function first.&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Aug 2003 16:13:54 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136490 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136481</link>
    <description> &lt;p&gt;Have you trying connecting from the shell, assuming that you have shell access?&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
mysql db_name -u username -ppassword&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
This will tell you if your user can actually connect to mysql.&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Aug 2003 15:11:57 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1136481 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136480</link>
    <description> &lt;p&gt;hmm... &lt;/p&gt;
&lt;p&gt;suzanne: if that means cgi module then i can&#039;t use it.&lt;/p&gt;
&lt;p&gt;mark: the mysql book i have suggests using it.&lt;/p&gt;
&lt;p&gt;10:51 - made sure all host feilds related to visitor are localhost and flushed privileges, and double checked join.php&lt;/p&gt;
&lt;p&gt;result of test&lt;br /&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;Quote: Warning: Access denied for user: &#039;visitor@localhost&#039; (Using password: YES) in /var/www/html/findyourdesire/join.php on line 30&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;Warning: MySQL Connection Failed: Access denied for user: &#039;visitor@localhost&#039; (Using password: YES) in /var/www/html/findyourdesire/join.php on line 30&lt;br /&gt;
cannot access db&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Aug 2003 14:51:17 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1136480 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/my-sql-connecteivity-issue#comment-1136467</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by m3rajk &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;there&#039;s just one machine. it&#039;s name is Ashes.&lt;br /&gt;
i&#039;ve already switched them to localhost in that file. no change. &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You need to change everythig in PHP to &#039;localhost&#039;, &lt;strong&gt;as well as&lt;/strong&gt; the `Host` field in the `mysql` dabatase.&lt;/p&gt;
&lt;p&gt;And try mysql_connect() instead of persistent connections.  (personally, I never use persistent connections)&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Aug 2003 22:00:29 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1136467 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
