<br><div><span class="gmail_quote">On 12/14/05, <b class="gmail_sendername">Russ Schneider</b> &lt;<a href="mailto:russ@sugapablo.com">russ@sugapablo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Semi-Off-Topic, since it MAY be a server config issue:<br><br>I have a small test script connecting to a MySQL database.&nbsp;&nbsp;It seems to<br>work, unless I try to use the resource link identifier returned by<br>mysql_connect();
<br><br>This does NOT work and returns no rows:<br><br>&lt;?php<br>include(&quot;../config.php&quot;);<br><br>$dbi = mysql_connect($dbhost,$dbuname,$dbpass);<br>mysql_select_db($dbname);<br><br>$res = mysql_query(&quot;SELECT * FROM temp_stories&quot;,$dbi);
<br><br>if($dbi)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;PASS&lt;BR&gt;&quot;;<br>else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;FAIL&lt;BR&gt;&quot;;<br><br>while($row = mysql_fetch_array($res)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $row['title'].&quot;&lt;br/&gt;&quot;;<br>}<br>
?&gt;</blockquote><div><br><br>Try putting &quot;or die('Query failed: ' . mysql_error());&quot; at the end of your query statement.&nbsp; ...<br>$res = mysql_query(&quot;SELECT * FROM temp_stories&quot;,$dbi) or die('Query failed: ' .mysql_error());
<br><br>That will print any errors from mysql.<br><br>Chris <br></div><br></div><br>