Welcome Guest, Not a member yet? Register   Sign In
Query returning no results?
#15

[eluser]matt.asbury[/eluser]
Honestly Xabi, I'm not too sure where to go with this now. With all the details you have given us, the database should be returning something. You could try simplifying the query further:
Code:
SELECT * FROM products
If this does nothing then I'm not too sure what to test next. As long as you are getting results from the other tool you are using, you can rule out problems with the database. You could try commenting out this code and do a manual connection to the database to run a query using classic PHP:
Code:
$link = mysql_connect("host", "user", "password");
mysql_select_db("database", $link);

$result = mysql_query("SELECT * FROM tablename", $link);
$num_rows = mysql_num_rows($result);

echo "$num_rows Rows\n";

mysql_close($link);


Messages In This Thread
Query returning no results? - by El Forum - 11-16-2010, 03:55 PM
Query returning no results? - by El Forum - 11-16-2010, 04:50 PM
Query returning no results? - by El Forum - 11-16-2010, 04:59 PM
Query returning no results? - by El Forum - 11-16-2010, 05:27 PM
Query returning no results? - by El Forum - 11-16-2010, 07:56 PM
Query returning no results? - by El Forum - 11-16-2010, 08:05 PM
Query returning no results? - by El Forum - 11-16-2010, 10:20 PM
Query returning no results? - by El Forum - 11-16-2010, 11:39 PM
Query returning no results? - by El Forum - 11-17-2010, 12:52 AM
Query returning no results? - by El Forum - 11-17-2010, 02:10 AM
Query returning no results? - by El Forum - 11-17-2010, 03:55 AM
Query returning no results? - by El Forum - 11-17-2010, 04:11 AM
Query returning no results? - by El Forum - 11-17-2010, 05:16 AM
Query returning no results? - by El Forum - 11-17-2010, 01:40 PM
Query returning no results? - by El Forum - 11-17-2010, 03:17 PM
Query returning no results? - by El Forum - 11-17-2010, 03:30 PM
Query returning no results? - by El Forum - 11-17-2010, 03:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB