big edit: make some test code if you're certain the table exists.
make sure you fill in all of the blanks to whatever your configuration files point to.PHP Code:<?php
mysql_connect('host', 'username', 'password') or die('could not connect: ' . mysql_error());
mysql_select_db('database') or die('could not select: ' . mysql_error());
$sql = "SELECT * FROM table WHERE 1";
$q = mysql_query($sql) or die('could not query: ' . mysql_error());
$r = mysql_fetch_array($q) or die('could not fetch: ' . mysql_error());
?>
if you've made it this far, everything's working fine.




Reply With Quote